Skip to content

Commit

Permalink
Enable Hardened Runtime for Sparkle
Browse files Browse the repository at this point in the history
  • Loading branch information
mangerlahn committed Jun 15, 2019
1 parent 39c8954 commit af3185b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Latest.xcodeproj/project.pbxproj
Expand Up @@ -319,6 +319,7 @@
5046AFF11FF6CEBD00ABAA97 /* Embed Frameworks */,
5045842E1FF6CF2D00E15E9D /* CopyFiles */,
50EAB06122B51AA200685775 /* Update Build Number */,
50EAB06222B51EDC00685775 /* Sign Bundled Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -442,6 +443,25 @@
shellScript = "#!/bin/bash\n\ngit=$(sh /etc/profile; which git)\nnumber_of_commits=$(\"$git\" rev-list HEAD --count)\n\ntarget_plist=\"$TARGET_BUILD_DIR/$INFOPLIST_PATH\"\ndsym_plist=\"$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist\"\n\nfor plist in \"$target_plist\" \"$dsym_plist\"; do\nif [ -f \"$plist\" ]; then\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $number_of_commits\" \"$plist\"\nfi\ndone\n";
showEnvVarsInLog = 0;
};
50EAB06222B51EDC00685775 /* Sign Bundled Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Sign Bundled Frameworks";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "LOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n\n# By default, use the configured code signing identity for the project/target\nIDENTITY=\"${CODE_SIGN_IDENTITY}\"\nif [ \"$IDENTITY\" == \"\" ]\nthen\n# If a code signing identity is not specified, use ad hoc signing\nIDENTITY=\"-\"\nfi\ncodesign --verbose --force --deep -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app\"\ncodesign --verbose --force -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down

0 comments on commit af3185b

Please sign in to comment.