Mercurial > hg > sonic-visualiser
comparison deploy/osx/notarize.sh @ 2395:5d2d3fdae354
Merge
author | Chris Cannam |
---|---|
date | Tue, 22 Oct 2019 16:32:28 +0100 |
parents | ab2d0fe8f0b7 |
children |
comparison
equal
deleted
inserted
replaced
2394:32107caa1aaa | 2395:5d2d3fdae354 |
---|---|
26 | 26 |
27 echo | 27 echo |
28 echo "Uploading for notarization..." | 28 echo "Uploading for notarization..." |
29 | 29 |
30 uuidfile=.notarization-uuid | 30 uuidfile=.notarization-uuid |
31 rm -f "$uuidfile" | 31 statfile=.notarization-status |
32 rm -f "$uuidfile" "$statfile" | |
32 | 33 |
33 xcrun altool --notarize-app \ | 34 xcrun altool --notarize-app \ |
34 -f "$dmg" \ | 35 -f "$dmg" \ |
35 --primary-bundle-id "$bundleid" \ | 36 --primary-bundle-id "$bundleid" \ |
36 -u "$user" \ | 37 -u "$user" \ |
49 echo | 50 echo |
50 echo "Waiting and checking for completion..." | 51 echo "Waiting and checking for completion..." |
51 | 52 |
52 while true ; do | 53 while true ; do |
53 sleep 30 | 54 sleep 30 |
54 status=$(xcrun altool --notarization-info "$uuid" -u "$user" -p @keychain:altool 2>&1) | 55 |
55 if echo "$status" | grep -q 'Package Approved' ; then | 56 xcrun altool --notarization-info \ |
57 "$uuid" \ | |
58 -u "$user" \ | |
59 -p @keychain:altool 2>&1 | tee "$statfile" | |
60 | |
61 if grep -q 'Package Approved' "$statfile"; then | |
56 echo | 62 echo |
57 echo "Approved! Status output is:" | 63 echo "Approved! Status output is:" |
58 echo "$status" | 64 cat "$statfile" |
59 break | 65 break |
60 elif echo "$status" | grep -q 'in progress' ; then | 66 elif grep -q 'in progress' "$statfile" ; then |
61 echo | 67 echo |
62 echo "Still in progress... Status output is:" | 68 echo "Still in progress... Status output is:" |
63 echo "$status" | 69 cat "$statfile" |
64 echo "Waiting..." | 70 echo "Waiting..." |
65 else | 71 else |
66 echo | 72 echo |
67 echo "Failure or unknown status in output:" | 73 echo "Failure or unknown status in output:" |
68 echo "$status" | 74 cat "$statfile" |
69 exit 2 | 75 exit 2 |
70 fi | 76 fi |
71 done | 77 done |
72 | 78 |
73 echo | 79 echo |