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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpalm",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "type": "module",
5
5
  "license": "MPL-2.0",
6
6
  "description": "OpenPalm CLI — install and manage a self-hosted OpenPalm stack",
@@ -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
  }