We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56e27b commit 8d22999Copy full SHA for 8d22999
scripts/notarize_darwin.sh
@@ -47,8 +47,9 @@ rcodesign encode-app-store-connect-api-key \
47
# The notarization process is very fragile and heavily dependent on Apple's
48
# notarization server not returning server errors, so we retry this step twice
49
# with a delay of 30 seconds between attempts.
50
+NOTARY_SUBMIT_ATTEMPTS=2
51
rc=0
-for i in $(seq 1 2); do
52
+for i in $(seq 1 $NOTARY_SUBMIT_ATTEMPTS); do
53
# -v is quite verbose, the default output is pretty good on it's own. Adding
54
# -v makes it dump the credentials used for uploading to Apple's S3 bucket.
55
rcodesign notary-submit \
@@ -58,7 +59,7 @@ for i in $(seq 1 2); do
58
59
1>&2 && rc=0 && break || rc=$?
60
61
log "rcodesign exit code: $rc"
- if [[ $i -lt 2 ]]; then
62
+ if [[ $i -lt $NOTARY_SUBMIT_ATTEMPTS ]]; then
63
log
64
log "Retrying notarization in 30 seconds"
65
0 commit comments