Wait up to 30 minutes for notarisation - it can be very slow!

pull/40/head
Dave Page 2021-02-02 16:59:58 +00:00
parent eca8e706dd
commit 65d9f88c63
1 changed files with 3 additions and 3 deletions

View File

@ -363,12 +363,12 @@ _notarize_pkg() {
REQUEST_UUID=$(echo ${STATUS} | awk '/RequestUUID/ { print $NF; }')
echo "Notarization request ID: ${REQUEST_UUID}"
# Now we need to wait for the results. Try 10 times.
for i in {1..20}; do
# Now we need to wait for the results. Try 60 times.
for i in {1..60}; do
echo "Waiting 30 seconds..."
sleep 30
echo "Requesting notarisation result (attempt ${i} of 20)..."
echo "Requesting notarisation result (attempt ${i} of 60)..."
REQUEST_STATUS=$(xcrun altool --notarization-info ${REQUEST_UUID} --username ${DEVELOPER_USER} --password ${DEVELOPER_ASP} 2>&1 | awk -F ': ' '/Status:/ { print $2; }' )
if [[ "${REQUEST_STATUS}" == "success" ]]; then