@hypabolic/hypa-darwin-x64 0.0.0-bootstrap.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/hypa +2 -0
- package/package.json +23 -0
- package/postinstall.js +15 -0
package/bin/hypa
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hypabolic/hypa-darwin-x64",
|
|
3
|
+
"version": "0.0.0-bootstrap.1",
|
|
4
|
+
"description": "Hypa native binary for darwin x64",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Hypabolic/Hypa.git",
|
|
8
|
+
"directory": "npm/hypa-platform"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"os": [
|
|
12
|
+
"darwin"
|
|
13
|
+
],
|
|
14
|
+
"cpu": [
|
|
15
|
+
"x64"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"postinstall": "node postinstall.js"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
if (process.platform === "win32") process.exit(0);
|
|
7
|
+
|
|
8
|
+
const binPath = path.join(__dirname, "bin", "hypa");
|
|
9
|
+
try {
|
|
10
|
+
fs.chmodSync(binPath, 0o755);
|
|
11
|
+
} catch (err) {
|
|
12
|
+
if (err.code !== "ENOENT") {
|
|
13
|
+
console.error(`[hypa postinstall] chmod failed: ${err.message}`);
|
|
14
|
+
}
|
|
15
|
+
}
|