htn-tunnel 0.2.4 → 0.2.5

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.
Files changed (2) hide show
  1. package/lib/install.js +5 -2
  2. package/package.json +1 -1
package/lib/install.js CHANGED
@@ -57,8 +57,11 @@ async function main() {
57
57
  fs.mkdirSync(binDir, { recursive: true });
58
58
 
59
59
  if (archiveExt === ".zip") {
60
- // Windows 10+ has tar that handles zip.
61
- execSync(`tar -xf "${tmpFile}" -C "${tmpDir}"`, { stdio: "pipe" });
60
+ // Use PowerShell on Windows for reliable zip extraction.
61
+ execSync(
62
+ `powershell -NoProfile -Command "Expand-Archive -Path '${tmpFile}' -DestinationPath '${tmpDir}' -Force"`,
63
+ { stdio: "pipe" }
64
+ );
62
65
  } else {
63
66
  execSync(`tar -xzf "${tmpFile}" -C "${tmpDir}"`, { stdio: "pipe" });
64
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htn-tunnel",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Self-hosted tunnel client — expose localhost to the internet",
5
5
  "bin": {
6
6
  "htn-tunnel": "./bin/htn-tunnel.js"