klaatcode-darwin-arm64 1.15.38 → 1.15.40

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/bin/klaatcode CHANGED
Binary file
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "klaatcode-darwin-arm64",
3
- "version": "1.15.38",
3
+ "version": "1.15.40",
4
4
  "preferUnplugged": true,
5
5
  "os": [
6
6
  "darwin"
7
7
  ],
8
8
  "cpu": [
9
9
  "arm64"
10
- ]
10
+ ],
11
+ "scripts": {
12
+ "postinstall": "node postinstall.js"
13
+ }
11
14
  }
package/postinstall.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ // Runs automatically after `npm install` / `npm install -g klaatcode`.
3
+ // Strips the macOS quarantine xattr so Gatekeeper doesn't block the binary.
4
+ // IMPORTANT: Do NOT re-sign — Bun's linker sets the linker-signed flag
5
+ // (0x20000) which XFENCE requires. codesign --force destroys it.
6
+ const { execSync } = require("child_process")
7
+ const path = require("path")
8
+
9
+ const bin = path.join(__dirname, "bin", "klaatcode")
10
+
11
+ try {
12
+ execSync(`xattr -dr com.apple.quarantine "${bin}"`, { stdio: "pipe" })
13
+ } catch {
14
+ // quarantine attr may not exist — not an error
15
+ }
16
+ console.log("klaatcode: postinstall complete (quarantine stripped, signature preserved)")