rapidlynk 0.1.0
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/rapidlynk.exe +0 -0
- package/install.js +20 -0
- package/package.json +9 -0
|
Binary file
|
package/install.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
const binDir = path.dirname(process.argv[1]);
|
|
7
|
+
// process.argv[1] points to the npm shim location
|
|
8
|
+
|
|
9
|
+
const src = path.join(__dirname, "bin", "rapidlynk-win-x64.exe");
|
|
10
|
+
const dest = path.join(binDir, "rapidlynk.exe");
|
|
11
|
+
|
|
12
|
+
if (!fs.existsSync(src)) {
|
|
13
|
+
console.error("❌ Binary not found:", src);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
fs.copyFileSync(src, dest);
|
|
18
|
+
fs.chmodSync(dest, 0o755);
|
|
19
|
+
|
|
20
|
+
console.log("✅ RapidLynk installed successfully");
|