@skalpelai/skalpel-linux-x64 3.0.0 → 3.0.1

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/skalpel CHANGED
Binary file
package/bin/skalpeld CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalpelai/skalpel-linux-x64",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Skalpel linux/x64 platform binaries. Installed automatically as an optionalDependency of the parent 'skalpel' package; not intended for direct install.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://skalpel.ai",
@@ -8,8 +8,12 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/skalpelai/Skalpelai_Client.git"
10
10
  },
11
+ "scripts": {
12
+ "postinstall": "node postinstall.js"
13
+ },
11
14
  "files": [
12
- "bin/"
15
+ "bin/",
16
+ "postinstall.js"
13
17
  ],
14
18
  "os": ["linux"],
15
19
  "cpu": ["x64"]
package/postinstall.js ADDED
@@ -0,0 +1,20 @@
1
+ // Re-apply +x on bin/ binaries — npm publish strips the bit from
2
+ // regular files (only `bin` field entries get it preserved). Without
3
+ // this, the parent skalpel shim hits EACCES on spawn. Best-effort:
4
+ // silently skip on Windows or if a binary is missing.
5
+ 'use strict';
6
+ if (process.platform === 'win32') {
7
+ process.exit(0);
8
+ }
9
+ var fs = require('fs');
10
+ var path = require('path');
11
+ ['skalpel', 'skalpeld'].forEach(function (name) {
12
+ var p = path.join(__dirname, 'bin', name);
13
+ try {
14
+ fs.chmodSync(p, 0o755);
15
+ } catch (_err) {
16
+ // file missing or permission denied — non-critical for the
17
+ // parent shim's resolve path; surface via the parent's own
18
+ // EACCES if the binary then fails to spawn.
19
+ }
20
+ });