Skip to content
Closed
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 desktop/scripts/prepare-sidecar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,11 @@ mkdirSync(binaries, { recursive: true });
mkdirSync(resources, { recursive: true });
const destination = join(binaries, `ocx-${triple}${target.startsWith("bun-windows-") ? ".exe" : ""}`);
copyFileSync(executable, destination);
if (process.platform === "darwin" && target.startsWith("bun-darwin-")) {
// Bun linker-signed output is killed by macOS page validation (CODESIGNING
// "Invalid Page"); seal ad-hoc so the bundled sidecar actually launches.
const sign = Bun.spawnSync(["codesign", "-s", "-", "-f", destination], { stdout: "inherit", stderr: "inherit" });
if (sign.exitCode !== 0) process.exit(sign.exitCode);
}
cpSync(join(repoRoot, "gui", "dist"), resources, { recursive: true });
console.log(`Prepared ${destination}`);
Loading