Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ preview:
$(XCODEBUILD) -scheme $(PREVIEW_SCHEME) build
$(PREVIEW)

# The picture the screen saver list shows before it starts a live preview.
# Rendered at 2x and downsampled, so both sizes come from one run. Where the cat
# ends up is down to where it happened to wander, so run this until you get one
# you like.
.PHONY: thumbnail
thumbnail:
$(XCODEBUILD) -scheme $(PREVIEW_SCHEME) build
$(PREVIEW) --snapshot Resources/thumbnail@2x.png \
--preview --size 90x58 --frames 2400 --grey --cats 1 --speed 5
cp Resources/thumbnail@2x.png Resources/thumbnail.png
sips -z 58 90 Resources/thumbnail.png >/dev/null

.PHONY: lint
lint:
swiftlint --strict
Expand Down
16 changes: 16 additions & 0 deletions NecoSaver.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
CE0000000000000000000106 /* NecoSaverEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000006 /* NecoSaverEngine.swift */; };
CE0000000000000000000107 /* ConfigureSheetController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000007 /* ConfigureSheetController.swift */; };
CE0000000000000000000108 /* NecoSaverView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000008 /* NecoSaverView.swift */; };
CE0000000000000000000121 /* thumbnail.png in Resources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000021 /* thumbnail.png */; };
CE0000000000000000000122 /* thumbnail@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000022 /* thumbnail@2x.png */; };
CE0000000000000000000109 /* Wallpaper.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000010 /* Wallpaper.swift */; };
CE0000000000000000000111 /* Sprites.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000001 /* Sprites.swift */; };
CE0000000000000000000112 /* SpriteCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE0000000000000000000002 /* SpriteCache.swift */; };
Expand Down Expand Up @@ -43,6 +45,8 @@
CE0000000000000000000008 /* NecoSaverView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NecoSaverView.swift; sourceTree = "<group>"; };
CE0000000000000000000010 /* Wallpaper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Wallpaper.swift; sourceTree = "<group>"; };
CE0000000000000000000009 /* PreviewApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewApp.swift; sourceTree = "<group>"; };
CE0000000000000000000021 /* thumbnail.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = thumbnail.png; sourceTree = "<group>"; };
CE0000000000000000000022 /* thumbnail@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "thumbnail@2x.png"; sourceTree = "<group>"; };
CE0000000000000000000011 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CE0000000000000000000012 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CE0000000000000000000013 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
Expand Down Expand Up @@ -91,6 +95,15 @@
path = Sources;
sourceTree = "<group>";
};
CE0000000000000000000302 /* Resources */ = {
isa = PBXGroup;
children = (
CE0000000000000000000021 /* thumbnail.png */,
CE0000000000000000000022 /* thumbnail@2x.png */,
);
path = Resources;
sourceTree = "<group>";
};
CE0000000000000000000303 /* Preview */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -122,6 +135,7 @@
isa = PBXGroup;
children = (
CE0000000000000000000301 /* Sources */,
CE0000000000000000000302 /* Resources */,
CE0000000000000000000303 /* Preview */,
CE0000000000000000000013 /* README.md */,
CE0000000000000000000304 /* Frameworks */,
Expand Down Expand Up @@ -207,6 +221,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CE0000000000000000000121 /* thumbnail.png in Resources */,
CE0000000000000000000122 /* thumbnail@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Binary file added Resources/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/thumbnail@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading