Skip to content

Commit 0f8d587

Browse files
committed
fix(macos): Fix notarization submission ID extraction (#164)
- Fix duplicate submission ID issue by taking only the first occurrence - Capture error messages from notarytool info command - Ensure proper UUID format for notarization status checks
1 parent cd15028 commit 0f8d587

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ jobs:
582582
# Notarize the signed DMG
583583
echo "📜 Notarize the DMG"
584584
SUBMIT_OUTPUT=$(xcrun notarytool submit "${{env.APP_NAME}}.dmg" --keychain-profile "AC_PASSWORD")
585-
NOTARY_SUBMISSION_ID=$(echo "$SUBMIT_OUTPUT" | grep "id:" | awk '{print $2}')
585+
NOTARY_SUBMISSION_ID=$(echo "$SUBMIT_OUTPUT" | grep "id:" | head -1 | awk '{print $2}')
586586
echo "Notarization submission ID: $NOTARY_SUBMISSION_ID"
587587
588588
if [[ -z "$NOTARY_SUBMISSION_ID" ]]; then
@@ -612,7 +612,8 @@ jobs:
612612
security unlock-keychain -p "" build.keychain
613613
614614
# Check notarization status
615-
NOTARY_INFO=$(xcrun notarytool info --keychain-profile "AC_PASSWORD" "$NOTARY_SUBMISSION_ID")
615+
echo "🔍 Checking notarization status..."
616+
NOTARY_INFO=$(xcrun notarytool info --keychain-profile "AC_PASSWORD" "$NOTARY_SUBMISSION_ID" 2>&1)
616617
echo "$NOTARY_INFO"
617618
618619
# Extract status

0 commit comments

Comments
 (0)