Skip to content

Commit 8d22999

Browse files
committed
pr comments
1 parent d56e27b commit 8d22999

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/notarize_darwin.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ rcodesign encode-app-store-connect-api-key \
4747
# The notarization process is very fragile and heavily dependent on Apple's
4848
# notarization server not returning server errors, so we retry this step twice
4949
# with a delay of 30 seconds between attempts.
50+
NOTARY_SUBMIT_ATTEMPTS=2
5051
rc=0
51-
for i in $(seq 1 2); do
52+
for i in $(seq 1 $NOTARY_SUBMIT_ATTEMPTS); do
5253
# -v is quite verbose, the default output is pretty good on it's own. Adding
5354
# -v makes it dump the credentials used for uploading to Apple's S3 bucket.
5455
rcodesign notary-submit \
@@ -58,7 +59,7 @@ for i in $(seq 1 2); do
5859
1>&2 && rc=0 && break || rc=$?
5960

6061
log "rcodesign exit code: $rc"
61-
if [[ $i -lt 2 ]]; then
62+
if [[ $i -lt $NOTARY_SUBMIT_ATTEMPTS ]]; then
6263
log
6364
log "Retrying notarization in 30 seconds"
6465
log

0 commit comments

Comments
 (0)