Skip to content

Commit

Permalink
Add debugging for notarization
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons committed Aug 29, 2024
1 parent fe12890 commit 62fbf7e
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,32 @@ jobs:

- name: Notarize the Mac package
run: |
xcrun notarytool submit Specify_macos/Specify_macos.dmg --wait \
SUBMISSION_ID=$(xcrun notarytool submit Specify_macos/Specify_macos.dmg \
--apple-id "[email protected]" \
--password "$AC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
| tee notarize-app-output.txt
grep -q "status: Accepted" notarize-app-output.txt || { echo "Notarization failed!"; exit 1; }
--output-format json | jq -r '.id')
echo "Submission ID: $SUBMISSION_ID"
xcrun notarytool wait "$SUBMISSION_ID" \
--apple-id "[email protected]" \
--password "$AC_PASSWORD" \
--team-id "$APPLE_TEAM_ID"
NOTARIZATION_STATUS=$(xcrun notarytool info "$SUBMISSION_ID" \
--apple-id "[email protected]" \
--password "$AC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
--output-format json | jq -r '.status')
if [ "$NOTARIZATION_STATUS" != "Accepted" ]; then
echo "Notarization failed. Fetching logs..."
xcrun notarytool log "$SUBMISSION_ID" \
--apple-id "[email protected]" \
--password "$AC_PASSWORD" \
--team-id "$APPLE_TEAM_ID"
exit 1
fi
env:
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
Expand Down

0 comments on commit 62fbf7e

Please sign in to comment.