From af3185bd418beec442a7d66e8a05496ae62a79df Mon Sep 17 00:00:00 2001 From: Max Langer Date: Sat, 15 Jun 2019 14:43:33 +0200 Subject: [PATCH] Enable Hardened Runtime for Sparkle --- Latest.xcodeproj/project.pbxproj | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Latest.xcodeproj/project.pbxproj b/Latest.xcodeproj/project.pbxproj index 2d183bae..f7e3313e 100644 --- a/Latest.xcodeproj/project.pbxproj +++ b/Latest.xcodeproj/project.pbxproj @@ -319,6 +319,7 @@ 5046AFF11FF6CEBD00ABAA97 /* Embed Frameworks */, 5045842E1FF6CF2D00E15E9D /* CopyFiles */, 50EAB06122B51AA200685775 /* Update Build Number */, + 50EAB06222B51EDC00685775 /* Sign Bundled Frameworks */, ); buildRules = ( ); @@ -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 */