- shellScript = "# Code sign sparkle app\nLOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n\n# By default, use the configured code signing identity for the project/target\nIDENTITY=\"${EXPANDED_CODE_SIGN_IDENTITY}\"\nif [ \"$IDENTITY\" == \"\" ]\nthen\n # If a code signing identity is not specified, use ad hoc signing\n IDENTITY=\"-\"\nfi\n\n# Sparkle Code Signing https://sparkle-project.org/documentation/sandboxing/#code-signing\ncodesign -f -s \"$IDENTITY\" -o runtime \"$LOCATION/Sparkle.framework/Versions/B/XPCServices/Installer.xpc\"\n\n# For Sparkle versions >= 2.6\ncodesign -f -s \"$IDENTITY\" -o runtime --preserve-metadata=entitlements \"$LOCATION/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc\"\n\ncodesign -f -s \"$IDENTITY\" -o runtime \"$LOCATION/Sparkle.framework/Versions/B/Autoupdate\"\ncodesign -f -s \"$IDENTITY\" -o runtime \"$LOCATION/Sparkle.framework/Versions/B/Updater.app\"\n\ncodesign -f -s \"$IDENTITY\" -o runtime \"$LOCATION/Sparkle.framework\"\n";
0 commit comments