Skip to content

Commit 7036b6f

Browse files
committed
Cleanup and tidying in documentation, project organization, signing and build process
1 parent 0f128f1 commit 7036b6f

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ archives:
4646
@echo "Creating source archive ${APP_SRC_ZIP_NAME}..."
4747
@cd $(BUILD_DIR); zip -qy --symlinks -r "${APP_SRC_ZIP_NAME}" ".." -x \*.git\* -x \*.zip\* -x \*.DS_Store\* -x \*dsa_priv.pem\* -x \*Sparkle/dsa_priv.pem\* -x \*products/\* -x \*build/\* -x \*xcuserdata\*
4848

49-
@echo "Generating Sparkle DSA signature"
50-
@cd $(BUILD_DIR); ruby ../sparkle/sign_update.rb $(APP_ZIP_NAME) "../sparkle/dsa_priv.pem"
51-
5249
@echo "Generating Sparkle EdDSA signature for archive"
5350
@cd $(BUILD_DIR); ../sparkle/sign_update $(APP_ZIP_NAME)
5451

Sloth.xcodeproj/project.pbxproj

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@
9797
F45B3F6F29A15132007D506D /* CHANGES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGES.md; sourceTree = "<group>"; };
9898
F47B45351EE74F2C00D79DFF /* Credits.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
9999
F47B453F1EF82AC200D79DFF /* TODO.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = TODO.md; sourceTree = "<group>"; };
100+
F47F00322DDC158D00625B42 /* Sloth.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Sloth.entitlements; sourceTree = "<group>"; };
100101
F48BB5B924732C2C00B569F6 /* sloth_screenshot3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sloth_screenshot3.jpg; sourceTree = "<group>"; };
101102
F49B28AC1E858FAC00FA6716 /* sloth_screenshot2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sloth_screenshot2.jpg; sourceTree = "<group>"; };
102103
F4A8B5CD222DB5280049FA51 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
103104
F4A9D5EE206A68BC0069B2B6 /* LICENSE.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE.txt; sourceTree = "<group>"; };
104105
F4B977AF1F8EBBEB0099971E /* sloth_screenshot1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sloth_screenshot1.jpg; sourceTree = "<group>"; };
105-
F4E41CF12B06990D00F2897D /* Sloth.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Sloth.entitlements; sourceTree = "<group>"; };
106106
F4ED53C21C789A0A0024540F /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = "<absolute>"; };
107107
F4F1D8A01C7623AF00945D3E /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
108108
F4F1D9111C7CB95700945D3E /* dsa_priv.pem */ = {isa = PBXFileReference; lastKnownFileType = text; path = dsa_priv.pem; sourceTree = "<group>"; };
@@ -137,13 +137,9 @@
137137
29B97314FDCFA39411CA2CEA /* Sloth */ = {
138138
isa = PBXGroup;
139139
children = (
140-
F4E41CF12B06990D00F2897D /* Sloth.entitlements */,
141140
F44FC67225AD5EA200BC72F5 /* macos.yml */,
142141
F4A8B5CD222DB5280049FA51 /* Makefile */,
143-
F4F1D8A01C7623AF00945D3E /* README.md */,
144-
F47B453F1EF82AC200D79DFF /* TODO.md */,
145-
F45B3F6F29A15132007D506D /* CHANGES.md */,
146-
F4A9D5EE206A68BC0069B2B6 /* LICENSE.txt */,
142+
F47F00312DDC153100625B42 /* Documentation */,
147143
F435320D2558EFC800AF00BD /* Source */,
148144
F438712713402CDD00B51A5E /* Resources */,
149145
F4F1D9101C7CB95700945D3E /* Sparkle */,
@@ -189,6 +185,7 @@
189185
F438712713402CDD00B51A5E /* Resources */ = {
190186
isa = PBXGroup;
191187
children = (
188+
F47F00322DDC158D00625B42 /* Sloth.entitlements */,
192189
F40B7D2C1C75FA05000A4616 /* Images.xcassets */,
193190
F413E66E1C76842A00385DB3 /* MainMenu.xib */,
194191
F442E0721EA7DB1000BAD80C /* InfoPanel.xib */,
@@ -214,6 +211,17 @@
214211
name = Images;
215212
sourceTree = "<group>";
216213
};
214+
F47F00312DDC153100625B42 /* Documentation */ = {
215+
isa = PBXGroup;
216+
children = (
217+
F4F1D8A01C7623AF00945D3E /* README.md */,
218+
F47B453F1EF82AC200D79DFF /* TODO.md */,
219+
F45B3F6F29A15132007D506D /* CHANGES.md */,
220+
F4A9D5EE206A68BC0069B2B6 /* LICENSE.txt */,
221+
);
222+
path = Documentation;
223+
sourceTree = "<group>";
224+
};
217225
F4851D27256DA0BF0056CE9C /* Util */ = {
218226
isa = PBXGroup;
219227
children = (
@@ -264,7 +272,7 @@
264272
F4F1D89E1C761F8F00945D3E /* Set CFBundleVersion */,
265273
8D11072C0486CEB800E47090 /* Sources */,
266274
F413E66C1C76631F00385DB3 /* Copy Frameworks */,
267-
F49DB76F2572583F009B6257 /* Sign Autoupdate.app */,
275+
F49DB76F2572583F009B6257 /* Sign All Binaries */,
268276
8D11072E0486CEB800E47090 /* Frameworks */,
269277
);
270278
buildRules = (
@@ -322,7 +330,7 @@
322330
/* End PBXResourcesBuildPhase section */
323331

324332
/* Begin PBXShellScriptBuildPhase section */
325-
F49DB76F2572583F009B6257 /* Sign Autoupdate.app */ = {
333+
F49DB76F2572583F009B6257 /* Sign All Binaries */ = {
326334
isa = PBXShellScriptBuildPhase;
327335
alwaysOutOfDate = 1;
328336
buildActionMask = 2147483647;
@@ -332,14 +340,14 @@
332340
);
333341
inputPaths = (
334342
);
335-
name = "Sign Autoupdate.app";
343+
name = "Sign All Binaries";
336344
outputFileListPaths = (
337345
);
338346
outputPaths = (
339347
);
340348
runOnlyForDeploymentPostprocessing = 0;
341349
shellPath = /bin/sh;
342-
shellScript = "exit 0\n# We need to sign Autoupdate.app within Sparkle framework for update installation to work\n# Only do this for release builds so CI testing works\n#if [ \"${CONFIGURATION}\" != \"Release\" ]; then\n# exit 0\n#fi\n\n\nLOCATION1=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app/Contents/MacOS/Updater\"\nLOCATION2=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate\"\nLOCATION3=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc/Contents/MacOS/Downloader\"\nLOCATION4=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework\"\nLOCATION5=\"${BUILT_PRODUCTS_DIR}/Sloth.app\"\n\nIDENTITY=\"16A0188A9D74911B21953A33684437F70902BC30\"\n#${EXPANDED_CODE_SIGN_IDENTITY_NAME}\n\necho $IDENTITY\n\n\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION1\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION2\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION3\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION4\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION5\"\n";
350+
shellScript = "#exit 0\n# We need to sign all binaries within Sparkle framework for update installation to work\n# Only do this for release builds so CI testing works\nif [ \"${CONFIGURATION}\" != \"Release\" ]; then\n exit 0\nfi\n\n\nLOCATION1=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app/Contents/MacOS/Updater\"\nLOCATION2=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate\"\nLOCATION3=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc/Contents/MacOS/Downloader\"\nLOCATION4=\"${BUILT_PRODUCTS_DIR}/Sloth.app/Contents/Frameworks/Sparkle.framework\"\nLOCATION5=\"${BUILT_PRODUCTS_DIR}/Sloth.app\"\n\nIDENTITY=\"16A0188A9D74911B21953A33684437F70902BC30\"\n#${EXPANDED_CODE_SIGN_IDENTITY_NAME}\n\necho $IDENTITY\n\n\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION1\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION2\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION3\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION4\"\ncodesign --verbose --force -o runtime --deep --sign \"$IDENTITY\" \"$LOCATION5\"\n";
343351
};
344352
F4F1D89E1C761F8F00945D3E /* Set CFBundleVersion */ = {
345353
isa = PBXShellScriptBuildPhase;
@@ -389,7 +397,7 @@
389397
isa = XCBuildConfiguration;
390398
buildSettings = {
391399
CLANG_ENABLE_OBJC_ARC = YES;
392-
CODE_SIGN_ENTITLEMENTS = Sloth.entitlements;
400+
CODE_SIGN_ENTITLEMENTS = resources/Sloth.entitlements;
393401
CODE_SIGN_IDENTITY = "Apple Development";
394402
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
395403
CODE_SIGN_STYLE = Manual;
@@ -430,7 +438,7 @@
430438
isa = XCBuildConfiguration;
431439
buildSettings = {
432440
CLANG_ENABLE_OBJC_ARC = YES;
433-
CODE_SIGN_ENTITLEMENTS = Sloth.entitlements;
441+
CODE_SIGN_ENTITLEMENTS = resources/Sloth.entitlements;
434442
CODE_SIGN_IDENTITY = "Apple Development";
435443
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
436444
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;

resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<key>CFBundleSignature</key>
2424
<string>????</string>
2525
<key>CFBundleVersion</key>
26-
<string>342</string>
26+
<string>346</string>
2727
<key>LSApplicationCategoryType</key>
2828
<string>public.app-category.utilities</string>
2929
<key>LSMinimumSystemVersion</key>
File renamed without changes.

sparkle/SlothAppcast.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
<description><![CDATA[
1414
<h2>New in Sloth 3.4</h2>
1515
<ul>
16-
<li>"Copy" on app/process or file now copies both filesystem representation and string</li>
16+
<li>Copying (Cmd-C) an app/process or file now copies both filesystem representation and string to the clipboard</li>
1717
<li>Faster asynchronous file info processing in Info Panel</li>
1818
<li>Various minor improvements</li>
19+
<li>App is now notarized by Apple in addition to being Developer ID signed</li>
1920
</ul>
2021
]]></description>
2122
</item>

0 commit comments

Comments
 (0)