Skip to content

Commit 6aad56c

Browse files
committed
chore: more macos notary debugging
1 parent 0d008ec commit 6aad56c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/build-binary.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,28 @@ jobs:
217217
# Check if the submission was successful
218218
if echo "$SUBMISSION_OUTPUT" | grep -q "status: Accepted"; then
219219
echo "Notarization successful, proceeding with stapling"
220-
xcrun stapler staple "$BIN"
220+
221+
# Check binary info before stapling
222+
echo "Binary info before stapling:"
223+
codesign -dvv "$BIN"
224+
spctl -a -vv "$BIN" || true # may fail but shows info
225+
226+
# Try multiple stapling approaches
227+
echo "Trying stapler staple..."
228+
xcrun stapler staple "$BIN" || true
229+
230+
echo "Trying alternative stapling method..."
231+
xcrun stapler staple -v "$BIN" || true
232+
233+
# Verify notarization status
234+
echo "Verifying notarization status:"
235+
spctl --assess --verbose=4 "$BIN" || true
236+
237+
# Even if stapling fails, we continue because the binary is notarized
238+
# We can upload it anyway because it can be validated online by Gatekeeper
239+
echo "Binary is notarized, continuing with upload even if stapling failed"
221240
else
222-
echo "Notarization failed, skipping stapling"
241+
echo "Notarization failed, exiting"
223242
exit 1
224243
fi
225244
###

0 commit comments

Comments
 (0)