add code signing

This commit is contained in:
2026-08-01 14:31:13 +08:00
parent 0d3acef182
commit 42a22918a3
6 changed files with 33 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
const id = process.env.ELECTROBUN_DEVELOPER_ID
if (!id) {
console.error('ELECTROBUN_DEVELOPER_ID not set')
process.exit(1)
}
const r = Bun.spawnSync(
['codesign', '--force', '--options', 'runtime', '--timestamp', '--sign', id, 'src/bun/native/biometric-helper'],
{ stdout: 'inherit', stderr: 'inherit' },
)
process.exit(r.exitCode ?? 1)