-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,28 @@ fi | |
# xcrun altool --store-password-in-keychain-item "AC_PASSWORD" -u "[email protected]" -p "<password>" | ||
|
||
# Try different transport in flakey environments e.g., --transport Aspera | ||
|
||
xcrun altool --notarize-app \ | ||
--verbose \ | ||
--primary-bundle-id "pub.Keys" \ | ||
--username "[email protected]" \ | ||
--password "@keychain:AC_PASSWORD" \ | ||
--file Keys-$ver.dmg | ||
|
||
# xcrun altool --notarization-history 0 -u "[email protected]" -p "@keychain:AC_PASSWORD" | ||
|
||
xcrun stapler staple "Keys-0.0.23.dmg" | ||
|
||
# ditto -x -k Keys-$ver-mac.zip . | ||
# xcrun stapler staple "Keys.app" | ||
# rm Keys-$ver-mac.zip | ||
# ditto -ck --sequesterRsrc --keepParent Keys.app Keys-$ver-mac.zip | ||
# rm -rf Keys.app | ||
# --verbose \ | ||
|
||
file=release/Keys-$ver.dmg | ||
|
||
uuid=`xcrun altool --notarize-app --primary-bundle-id "pub.Keys" --username "[email protected]" --password "@keychain:AC_PASSWORD" --file $file 2>&1 | grep 'RequestUUID' | awk '{ print $3 }'` | ||
|
||
echo "Successfully uploaded to notarization service, polling for result: $uuid" | ||
sleep 15 | ||
while : | ||
do | ||
fullstatus=`xcrun altool --notarization-info "$uuid" --username "[email protected]" --password "@keychain:AC_PASSWORD" 2>&1` | ||
status=`echo "$fullstatus" | grep 'Status\:' | awk '{ print $2 }'` | ||
if [ "$status" = "success" ]; then | ||
echo "Notarization success" | ||
xcrun stapler staple "$file" | ||
return | ||
elif [ "$status" = "in" ]; then | ||
echo "Notarization still in progress, sleeping for 15 seconds and trying again" | ||
sleep 15 | ||
else | ||
echo "Notarization failed fullstatus below" | ||
echo "$fullstatus" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters