mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
parent
f5d838e557
commit
ab5cfa9f85
1 changed files with 1 additions and 16 deletions
|
|
@ -56,22 +56,7 @@ if [[ -n "$MACOS_NOTARIZATION_APPLE_ID" ]]; then
|
||||||
# This typically takes a few seconds inside a CI environment, but it might take more depending on the App
|
# This typically takes a few seconds inside a CI environment, but it might take more depending on the App
|
||||||
# characteristics. Visit the Notarization docs for more information and strategies on how to optimize it if
|
# characteristics. Visit the Notarization docs for more information and strategies on how to optimize it if
|
||||||
# you're curious
|
# you're curious
|
||||||
# Submit for notarization and capture output
|
xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait
|
||||||
NOTARY_OUTPUT=$(xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait --output-format json)
|
|
||||||
|
|
||||||
# Parse the submission ID from the JSON output
|
|
||||||
SUBMISSION_ID=$(echo "$NOTARY_OUTPUT" | jq -r '.id')
|
|
||||||
|
|
||||||
# Parse the status field in the JSON
|
|
||||||
STATUS=$(echo "$NOTARY_OUTPUT" | jq -r '.status')
|
|
||||||
|
|
||||||
if [[ "$STATUS" != "Accepted" ]]; then
|
|
||||||
echo "Notarization failed (status: $STATUS). Fetching detailed log..."
|
|
||||||
# Fetch and print the notarization log
|
|
||||||
xcrun notarytool log "$SUBMISSION_ID" --keychain-profile "notarytool-profile"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "No Apple ID configured."
|
echo "No Apple ID configured."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue