platforms/osx/wait-notarize
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | output=$1 |
| 4 | uuid=`awk -F= '/RequestUUID/ { print $2 }' $output` |
| 5 | |
| 6 | while xcrun altool --notarization-info $uuid --username $APPLEID_USER --password $APPLEID_APP_PASS | grep "in progress" |
| 7 | do |
| 8 | sleep 15 |
| 9 | done |
| 10 | |
| 11 | xcrun altool --notarization-info $uuid --username $APPLEID_USER --password $APPLEID_APP_PASS | tee wait-notarize.out |
| 12 | grep "Package Approved" wait-notarize.out |
| 13 | ret=$? |
| 14 | |
| 15 | rm -f wait-notarize.out |
| 16 | exit $ret |