Skip to content

Commit 029fb6f

Browse files
committed
make macOS code-signing script faster
1 parent 38bcf6f commit 029fb6f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/codesign_and_notarize.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ sudo xcode-select -s /Applications/Xcode.app/
44

55
SIGNER="Developer ID Application: Meltytech, LLC (Y6RX44QG2G)"
66
find ~/Desktop/Shotcut.app -type d -name __pycache__ -exec rm -r {} \+
7-
find ~/Desktop/Shotcut.app/Contents -name '*.o' -exec rm {} \;
8-
find ~/Desktop/Shotcut.app/Contents/lib -type f -exec codesign --options=runtime --force --verbose --sign "$SIGNER" {} \;
9-
find ~/Desktop/Shotcut.app/Contents/Frameworks -type f -exec codesign --options=runtime --force --verbose --sign "$SIGNER" {} \;
10-
find ~/Desktop/Shotcut.app/Contents/PlugIns -type f -exec codesign --options=runtime --force --verbose --sign "$SIGNER" {} \;
11-
find ~/Desktop/Shotcut.app/Contents/Resources -type f -exec codesign --options=runtime --force --verbose --sign "$SIGNER" {} \;
7+
find ~/Desktop/Shotcut.app/Contents \( -name '*.o' -or -name '*.a' \) -exec rm {} \;
128
xattr -cr ~/Desktop/Shotcut.app
13-
codesign --options=runtime --force --verbose --sign "$SIGNER" \
14-
--entitlements ./notarization.entitlements \
15-
~/Desktop/Shotcut.app/Contents/MacOS/{melt,ffmpeg,ffplay,ffprobe,glaxnimate,gopro2gpx,whisper-cli}
9+
find ~/Desktop/Shotcut.app/Contents -type f \( -name '*.dylib' -o -name '*.so' \) -exec \
10+
codesign --options=runtime --force --verbose --sign "$SIGNER" \
11+
{} \;
12+
find ~/Desktop/Shotcut.app/Contents/MacOS -type f -exec \
13+
codesign --options=runtime --force --verbose --sign "$SIGNER" \
14+
--entitlements ./notarization.entitlements \
15+
{} \;
1616
codesign --options=runtime --force --verbose --sign "$SIGNER" \
1717
--entitlements ./notarization.entitlements \
1818
~/Desktop/Shotcut.app

0 commit comments

Comments
 (0)