Skip to content

Commit

Permalink
Brute force: unquarantine macOS nightly.app
Browse files Browse the repository at this point in the history
also remove reference to Autoupdate.app
  • Loading branch information
Jojo-Schmitz committed Jan 8, 2025
1 parent 97df88c commit 80bad0d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions build/package_mac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80bad0d

Please sign in to comment.