@leanspec/http-linux-arm64 0.2.17-dev.21033364960 → 0.2.17-dev.21036599661
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 +7 -3
- package/postinstall.js +17 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leanspec/http-linux-arm64",
|
|
3
|
-
"version": "0.2.17-dev.
|
|
4
|
-
"description": "LeanSpec HTTP
|
|
3
|
+
"version": "0.2.17-dev.21036599661",
|
|
4
|
+
"description": "LeanSpec HTTP Server binary for Linux ARM64",
|
|
5
5
|
"os": [
|
|
6
6
|
"linux"
|
|
7
7
|
],
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
],
|
|
11
11
|
"main": "leanspec-http",
|
|
12
12
|
"files": [
|
|
13
|
-
"leanspec-http"
|
|
13
|
+
"leanspec-http",
|
|
14
|
+
"postinstall.js"
|
|
14
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node postinstall.js"
|
|
18
|
+
},
|
|
15
19
|
"repository": {
|
|
16
20
|
"type": "git",
|
|
17
21
|
"url": "https://github.com/codervisor/lean-spec.git"
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Postinstall script to set execute permissions on the binary.
|
|
4
|
+
* npm doesn't preserve file permissions, so we need to set them after install.
|
|
5
|
+
*/
|
|
6
|
+
const { chmodSync } = require('fs');
|
|
7
|
+
const { join } = require('path');
|
|
8
|
+
|
|
9
|
+
const binaryPath = join(__dirname, 'leanspec-http');
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
chmodSync(binaryPath, 0o755);
|
|
13
|
+
console.log('✓ Set execute permissions on leanspec-http binary');
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error('Warning: Could not set execute permissions:', err.message);
|
|
16
|
+
// Don't fail the install
|
|
17
|
+
}
|