From 80bad0dab0b6162eb20112da0a3d2c9742f8539a Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Wed, 8 Jan 2025 19:18:14 +0100 Subject: [PATCH] Brute force: unquarantine macOS nightly.app also remove reference to Autoupdate.app --- build/package_mac | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/build/package_mac b/build/package_mac index 20b219306ec51..a4823a4705441 100755 --- a/build/package_mac +++ b/build/package_mac @@ -186,22 +186,19 @@ ln -s /Applications/ ${VOLUME}/Applications set_bundle_display_options ${VOLUME} mv ${VOLUME}/Pictures ${VOLUME}/.Pictures -# Most nested locations should go first -CODE_PATHS=( - "${VOLUME}/${LONGER_NAME}.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app" - "${VOLUME}/${LONGER_NAME}.app" -) - #codesign echo "Codesign" # `codesign --deep` doesn't seem to search for code in Contents/Resources directory so sign libraries in it manually find "${VOLUME}/${LONGER_NAME}.app/Contents/Resources" -name '*.dylib' -exec codesign --force --options runtime --deep -s "Developer ID Application: ${DEVELOPER_NAME}" '{}' ';' # Sign code in other (more conventional) locations -codesign --force --options runtime --entitlements "${WORKING_DIRECTORY}/../build/macosx_entitlements.plist" --deep -s "Developer ID Application: ${DEVELOPER_NAME}" "${CODE_PATHS[@]}" +codesign --force --options runtime --entitlements "${WORKING_DIRECTORY}/../build/macosx_entitlements.plist" --deep -s "Developer ID Application: ${DEVELOPER_NAME}" "${VOLUME}/${LONGER_NAME}.app" +# unquarantine... +xattr -r -d com.apple.quarantine "${VOLUME}/${LONGER_NAME}.app" echo "spctl" -spctl --assess --type execute "${VOLUME}/${LONGER_NAME}.app" +spctl --assess --type execute -vvv "${VOLUME}/${LONGER_NAME}.app" +#if [ $? -eq 3 ]; then; exit 1; fi echo "Codesign verify" -codesign --verify --deep --strict --verbose=2 "${CODE_PATHS[@]}" +codesign --verify --deep --strict --verbose=2 ""${VOLUME}/${LONGER_NAME}.app"" echo "Unmount" for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do