Skip to content

Commit 9949fdf

Browse files
fix(build): notarize macOS app bundle before stapling (#1245)
1 parent 0f95cc7 commit 9949fdf

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/notarize.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ if [ $notarization_method = "exit" ]; then
6666
$notarization_method
6767
fi
6868

69-
if test -f "$app"; then
69+
if test -d "$app"; then
7070
echo "Notarizing: $app"
7171
zip=$app.zip
7272
# Turn the app into a zip file that notarization will accept
73-
ditto -c -k --keepParent $app $zip
74-
$notarization_method $zip
75-
run_stapler $app
73+
ditto -c -k --keepParent "$app" "$zip"
74+
$notarization_method "$zip"
75+
run_stapler "$app"
7676
else
77-
echo "Skipping: $app"
77+
echo "Skipping: $app (expected .app bundle directory)"
7878
fi
7979

8080
if test -f "$dmg"; then
8181
echo "Notarizing: $dmg"
82-
$notarization_method $dmg
83-
run_stapler $dmg
82+
$notarization_method "$dmg"
83+
run_stapler "$dmg"
8484
else
8585
echo "Skipping: $dmg"
8686
fi

0 commit comments

Comments
 (0)