Mercurial > hg > sonic-visualiser
diff deploy/osx/notarize.sh @ 2395:5d2d3fdae354
Merge
author | Chris Cannam |
---|---|
date | Tue, 22 Oct 2019 16:32:28 +0100 |
parents | ab2d0fe8f0b7 |
children |
line wrap: on
line diff
--- a/deploy/osx/notarize.sh Tue Oct 22 16:32:14 2019 +0100 +++ b/deploy/osx/notarize.sh Tue Oct 22 16:32:28 2019 +0100 @@ -28,7 +28,8 @@ echo "Uploading for notarization..." uuidfile=.notarization-uuid -rm -f "$uuidfile" +statfile=.notarization-status +rm -f "$uuidfile" "$statfile" xcrun altool --notarize-app \ -f "$dmg" \ @@ -51,21 +52,26 @@ while true ; do sleep 30 - status=$(xcrun altool --notarization-info "$uuid" -u "$user" -p @keychain:altool 2>&1) - if echo "$status" | grep -q 'Package Approved' ; then + + xcrun altool --notarization-info \ + "$uuid" \ + -u "$user" \ + -p @keychain:altool 2>&1 | tee "$statfile" + + if grep -q 'Package Approved' "$statfile"; then echo echo "Approved! Status output is:" - echo "$status" + cat "$statfile" break - elif echo "$status" | grep -q 'in progress' ; then + elif grep -q 'in progress' "$statfile" ; then echo echo "Still in progress... Status output is:" - echo "$status" + cat "$statfile" echo "Waiting..." else echo echo "Failure or unknown status in output:" - echo "$status" + cat "$statfile" exit 2 fi done