@features-cli/feature-cli-linux-arm64 0.4.16 → 0.5.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/features CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@features-cli/feature-cli-linux-arm64",
3
- "version": "0.4.16",
3
+ "version": "0.5.1",
4
4
  "description": "Features CLI for linux-arm64",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,6 +10,10 @@
10
10
  "publishConfig": {
11
11
  "provenance": true
12
12
  },
13
+ "files": [
14
+ "features*",
15
+ "postinstall.js"
16
+ ],
13
17
  "os": [
14
18
  "linux"
15
19
  ],
@@ -18,5 +22,8 @@
18
22
  ],
19
23
  "libc": [
20
24
  "glibc"
21
- ]
25
+ ],
26
+ "scripts": {
27
+ "postinstall": "node postinstall.js"
28
+ }
22
29
  }
package/postinstall.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ // Find the binary file
6
+ const files = fs.readdirSync(__dirname);
7
+ const binaryFile = files.find(f => f.startsWith('features'));
8
+
9
+ if (binaryFile) {
10
+ const binaryPath = path.join(__dirname, binaryFile);
11
+ try {
12
+ // Make the binary executable (chmod +x)
13
+ fs.chmodSync(binaryPath, 0o755);
14
+ console.log(`Made ${binaryFile} executable`);
15
+ } catch (err) {
16
+ console.warn(`Warning: Could not make ${binaryFile} executable:`, err.message);
17
+ }
18
+ }