MacOS - Set timeout for notarization (code signing)

(cherry picked from commit 6dd3c6562ffda5080f284416f8f85fd3f70eba95)
This commit is contained in:
Yuriy Puchkov
2021-02-03 14:14:38 +02:00
parent 540e407eb7
commit 0a4bcfedb2

View File

@@ -36,7 +36,8 @@ echo "--> Start Notarization process"
response=$(xcrun altool -t osx -f "${APP_NAME}.dmg" --primary-bundle-id "org.namecheap.${APP_NAME}" --notarize-app -u "${APPLE_DEV_USER}" -p "${APPLE_DEV_PASS}")
requestUUID=$(echo "${response}" | tr ' ' '\n' | tail -1)
while true; do
for ((ATTEMPT=5; ATTEMPT>=1; ATTEMPT--))
do
echo "--> Checking notarization status"
statusCheckResponse=$(xcrun altool --notarization-info "${requestUUID}" -u "${APPLE_DEV_USER}" -p "${APPLE_DEV_PASS}")
@@ -68,5 +69,10 @@ while true; do
done
done
if [[ "${ATTEMPT}" == 0 ]]; then
echo "ERROR: notarization check failed"
exit 1
fi
echo "--> Start verify signing process"
codesign -dv --verbose=4 "${APP_NAME}.dmg"