klaatcode-darwin-arm64 1.15.39 → 1.15.41
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 +1 -1
- package/postinstall.js +4 -9
package/bin/klaatcode
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Runs automatically after `npm install` / `npm install -g klaatcode`.
|
|
3
|
-
// Strips the macOS quarantine xattr
|
|
4
|
-
//
|
|
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.
|
|
5
6
|
const { execSync } = require("child_process")
|
|
6
7
|
const path = require("path")
|
|
7
8
|
|
|
@@ -12,10 +13,4 @@ try {
|
|
|
12
13
|
} catch {
|
|
13
14
|
// quarantine attr may not exist — not an error
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
execSync(`codesign --force --sign - "${bin}"`, { stdio: "pipe" })
|
|
18
|
-
console.log("klaatcode: ad-hoc signed binary (quarantine removed)")
|
|
19
|
-
} catch (e) {
|
|
20
|
-
console.warn("klaatcode: codesign skipped (non-fatal):", e && e.message)
|
|
21
|
-
}
|
|
16
|
+
console.log("klaatcode: postinstall complete (quarantine stripped, signature preserved)")
|