File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ rcodesign encode-app-store-connect-api-key \
47
47
# The notarization process is very fragile and heavily dependent on Apple's
48
48
# notarization server not returning server errors, so we retry this step twice
49
49
# with a delay of 30 seconds between attempts.
50
+ NOTARY_SUBMIT_ATTEMPTS=2
50
51
rc=0
51
- for i in $( seq 1 2 ) ; do
52
+ for i in $( seq 1 $NOTARY_SUBMIT_ATTEMPTS ) ; do
52
53
# -v is quite verbose, the default output is pretty good on it's own. Adding
53
54
# -v makes it dump the credentials used for uploading to Apple's S3 bucket.
54
55
rcodesign notary-submit \
@@ -58,7 +59,7 @@ for i in $(seq 1 2); do
58
59
1>&2 && rc=0 && break || rc=$?
59
60
60
61
log " rcodesign exit code: $rc "
61
- if [[ $i -lt 2 ]]; then
62
+ if [[ $i -lt $NOTARY_SUBMIT_ATTEMPTS ]]; then
62
63
log
63
64
log " Retrying notarization in 30 seconds"
64
65
log
You can’t perform that action at this time.
0 commit comments