fix(ci): replace breaking codesign step with signature verification

The previous ad-hoc codesign step failed with 'invalid or unsupported
format for signature' because it tried to preserve the 'linker-signed'
flag which cannot be re-signed. The native macOS build already produces
a valid ad-hoc signature via Bun's linker, so we only need to verify
the signature exists rather than re-sign it.
This commit is contained in:
YeonGyu-Kim
2026-04-11 23:47:54 +09:00
parent 565d3ffa91
commit 71b5ab67f6
+3 -3
View File
@@ -213,13 +213,13 @@ jobs:
echo "Built binary:"
ls -lh "$OUTPUT"
- name: Ad-hoc codesign darwin binary
- name: Verify darwin binary signature
if: steps.check.outputs.skip != 'true' && startsWith(matrix.platform, 'darwin-')
run: |
BINARY="packages/${{ matrix.platform }}/bin/oh-my-opencode"
codesign --force --sign - --preserve-metadata=entitlements,requirements,flags,runtime "$BINARY"
echo "Verifying signature:"
echo "Signature info:"
codesign -dvvv "$BINARY" 2>&1
codesign -dvvv "$BINARY" 2>&1 | grep -q "Signature=adhoc" || { echo "ERROR: binary is not ad-hoc signed"; exit 1; }
- name: Compress binary
if: steps.check.outputs.skip != 'true'