@agentfare/forge 0.2.2 → 0.2.3
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/install.js +3 -6
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -65,12 +65,9 @@ async function main() {
|
|
|
65
65
|
await download(url, archivePath);
|
|
66
66
|
console.log(`Downloaded to ${archivePath}`);
|
|
67
67
|
|
|
68
|
-
// Extract
|
|
69
|
-
//
|
|
70
|
-
|
|
71
|
-
const normArchivePath = archivePath.replace(/\\/g, "/");
|
|
72
|
-
const normBinDir = binDir.replace(/\\/g, "/");
|
|
73
|
-
execSync(`tar xzf "${normArchivePath}" -C "${normBinDir}" --force-local`, { stdio: "inherit" });
|
|
68
|
+
// Extract using relative path (cwd=binDir) to avoid Windows tar
|
|
69
|
+
// interpreting "X:/path" as a remote host connection.
|
|
70
|
+
execSync(`tar xzf "${archiveName}"`, { cwd: binDir, stdio: "inherit" });
|
|
74
71
|
|
|
75
72
|
// Make executable
|
|
76
73
|
const binaryName = getBinaryName();
|