From e7d5455ec4c7ff2aac30516ec60ee344408b44bf Mon Sep 17 00:00:00 2001 From: superdooper86 Date: Wed, 15 Jul 2026 17:48:16 +0200 Subject: [PATCH] ci: allow delayed Apple notarization --- .github/workflows/release.yml | 2 +- scripts/package_release.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d78c4d..bfc0457 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,7 @@ jobs: echo "SIGNING_IDENTITY=$signing_identity" >> "$GITHUB_ENV" - name: Build, sign, notarize, and create appcast - timeout-minutes: 110 + timeout-minutes: 350 run: scripts/package_release.sh - name: Create GitHub release diff --git a/scripts/package_release.sh b/scripts/package_release.sh index 7470a06..faddaa9 100755 --- a/scripts/package_release.sh +++ b/scripts/package_release.sh @@ -92,14 +92,15 @@ SUBMISSION_ID=$(plutil -extract id raw -o - "$BUILD_ROOT/notary-submission.json" echo "Notarization submitted: $SUBMISSION_ID" NOTARY_STATUS="In Progress" -for attempt in {1..180}; do +NOTARY_MAX_ATTEMPTS=660 +for attempt in $(seq 1 "$NOTARY_MAX_ATTEMPTS"); do xcrun notarytool info "$SUBMISSION_ID" \ --apple-id "$APPLE_ID" \ --team-id "$APPLE_TEAM_ID" \ --password "$APPLE_APP_PASSWORD" \ --output-format json > "$BUILD_ROOT/notary-status.json" NOTARY_STATUS=$(plutil -extract status raw -o - "$BUILD_ROOT/notary-status.json") - echo "Notarization status ($attempt/180): $NOTARY_STATUS" + echo "Notarization status ($attempt/$NOTARY_MAX_ATTEMPTS): $NOTARY_STATUS" case "$NOTARY_STATUS" in Accepted) @@ -123,7 +124,7 @@ for attempt in {1..180}; do done if [[ "$NOTARY_STATUS" != "Accepted" ]]; then - echo "Notarization did not finish within 90 minutes: $SUBMISSION_ID" >&2 + echo "Notarization did not finish within 5.5 hours: $SUBMISSION_ID" >&2 exit 1 fi