Skip to content

Commit 16e7fa5

Browse files
committed
fix(ci): ad-hoc sign darwin binaries with plain codesign
Bun on github macos-latest runners does not emit linker-signed signatures by default. Sign explicitly with 'codesign --sign -' without preserve-metadata since the binary has no prior signature.
1 parent 71b5ab6 commit 16e7fa5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish-platform.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ jobs:
213213
echo "Built binary:"
214214
ls -lh "$OUTPUT"
215215
216-
- name: Verify darwin binary signature
216+
- name: Ad-hoc sign darwin binary
217217
if: steps.check.outputs.skip != 'true' && startsWith(matrix.platform, 'darwin-')
218218
run: |
219219
BINARY="packages/${{ matrix.platform }}/bin/oh-my-opencode"
220+
codesign --sign - --force "$BINARY"
220221
echo "Signature info:"
221222
codesign -dvvv "$BINARY" 2>&1
222223
codesign -dvvv "$BINARY" 2>&1 | grep -q "Signature=adhoc" || { echo "ERROR: binary is not ad-hoc signed"; exit 1; }

0 commit comments

Comments
 (0)