@@ -4,7 +4,7 @@ sudo xcode-select -s /Applications/Xcode.app/
44
55SIGNER=" Developer ID Application: Meltytech, LLC (Y6RX44QG2G)"
66find ~ /Desktop/Shotcut.app -type d -name __pycache__ -exec rm -r {} \+
7- find ~ /Desktop/Shotcut.app/Contents \( -name ' *.o' -or -name ' *.a' \) -exec rm {} \;
7+ find ~ /Desktop/Shotcut.app/Contents \( -name ' *.o' -or -name ' *.a' -or -name ' *.dSYM ' \) -exec rm {} \;
88xattr -cr ~ /Desktop/Shotcut.app
99
1010# Strip any pre-existing signatures so we can overwrite (Qt SDK, etc.)
@@ -18,20 +18,23 @@ find ~/Desktop/Shotcut.app/Contents/MacOS -type f -exec \
1818# Re-sign all dylibs and plugins
1919find ~ /Desktop/Shotcut.app/Contents -type f \( -name ' *.dylib' -o -name ' *.so' \) -exec \
2020 codesign --options=runtime --timestamp --force --verbose --sign " $SIGNER " \
21- {} \;
21+ --preserve-metadata=identifier,entitlements \
22+ {} \;
2223
2324# Re-sign executables with entitlements
2425find ~ /Desktop/Shotcut.app/Contents/MacOS -type f -exec \
2526 codesign --options=runtime --timestamp --force --verbose --sign " $SIGNER " \
27+ --preserve-metadata=identifier,entitlements \
2628 --entitlements ./notarization.entitlements \
2729 {} \;
2830
2931# Re-sign the app bundle last
3032codesign --options=runtime --timestamp --force --verbose --sign " $SIGNER " \
31- --entitlements ./notarization.entitlements \
33+ --preserve-metadata=identifier,entitlements \
34+ --entitlements ./notarization.entitlements --generate-entitlement-der \
3235 ~ /Desktop/Shotcut.app
3336
34- codesign --verify --deep --strict --verbose=2 ~ /Desktop/Shotcut.app
37+ codesign --verify --deep --strict --verbose=4 ~ /Desktop/Shotcut.app
3538spctl -a -t exec -vv ~ /Desktop/Shotcut.app
3639
3740TMP=$( mktemp -d)
0 commit comments