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 +0 -0
- package/package.json +5 -2
- package/postinstall.js +16 -0
package/bin/klaatcode
CHANGED
|
Binary file
|
package/package.json
CHANGED
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)")
|