Skip to content

Commit 139e78c

Browse files
authored
Merge pull request #3671 from OpenShot/fix-mac-notarization
Fixing Mac notarization to wait until --notarization-history contains the record
2 parents 070e761 + 32976e9 commit 139e78c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

installer/build-mac-dmg.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,18 @@ while [ "$(( $(date +%s) - 3600 ))" -lt "$START" ]; do
9191
notarize_status="${BASH_REMATCH[1]}"
9292

9393
if [ "$notarize_status" != "in progress" ] && [ "$notarize_status" != "" ]; then
94-
echo "Notarization Status Found: $notarize_status"
95-
break
94+
echo "Notarization Status Found: $notarize_status. Wait for notarization to appear in --notarization-history/"
95+
verify_output=$(xcrun altool --notarization-history 0 -u "[email protected]" -p "@keychain:NOTARIZE_AUTH" | grep "$REQUEST_UUID")
96+
if [ "$verify_output" != "" ]; then
97+
echo "Notarization record found, and ready for stapling!"
98+
break
99+
fi
96100
fi
97101

98102
# Wait a few seconds
99103
sleep 60
100104
done
101105

102-
echo "Check Notarization Progress... (list recent notarization records)"
103-
xcrun altool --notarization-history 0 -u "[email protected]" -p "@keychain:NOTARIZE_AUTH" | head -n 10
104-
105106
echo "Staple Notarization Ticket to DMG"
106107
xcrun stapler staple "build/$OS_DMG_NAME"
107108

0 commit comments

Comments
 (0)