Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.1.44-beta.18 - 2026-09-23

### Fixed

- Re-sign compiled macOS executables and verify their code signatures before smoke testing and packaging release archives, preventing `Killed: 9` on launch.

## 0.1.44-beta.17 - 2026-09-23

### Fixed
Expand Down
8 changes: 8 additions & 0 deletions src/mendcode/packages/opencode/script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ for (const item of targets) {
},
})

// Bun's compiled Mach-O can have an invalid embedded signature even when the
// build succeeds. Sign the final binary before smoke testing or archiving it.
if (item.os === "darwin" && process.platform === "darwin") {
const binaryPath = `dist/${name}/bin/${binaryName}`
await $`codesign --force --sign - ${binaryPath}`
await $`codesign --verify --strict --verbose=2 ${binaryPath}`
}

// Smoke test: only run if binary is for current platform
if (item.os === process.platform && item.arch === process.arch && !item.abi) {
const binaryPath = `dist/${name}/bin/${binaryName}`
Expand Down
Loading