openpalm 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/varlock.ts +8 -0
package/package.json
CHANGED
package/src/lib/varlock.ts
CHANGED
|
@@ -116,6 +116,14 @@ export async function ensureVarlock(stateHome: string): Promise<string> {
|
|
|
116
116
|
throw new Error(`chmod +x failed for varlock binary (exit code ${chmodCode})`);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
// macOS: clear quarantine flag and ad-hoc codesign so Gatekeeper does not kill the binary
|
|
120
|
+
if (process.platform === 'darwin') {
|
|
121
|
+
const xattr = Bun.spawn(['xattr', '-cr', varlockBin], { stdout: 'ignore', stderr: 'ignore' });
|
|
122
|
+
await xattr.exited;
|
|
123
|
+
const codesign = Bun.spawn(['codesign', '--force', '--sign', '-', varlockBin], { stdout: 'ignore', stderr: 'ignore' });
|
|
124
|
+
await codesign.exited;
|
|
125
|
+
}
|
|
126
|
+
|
|
119
127
|
if (!(await Bun.file(varlockBin).exists())) {
|
|
120
128
|
throw new Error(`varlock binary not found at ${varlockBin} after install`);
|
|
121
129
|
}
|