hintshell 0.1.0-beta.2 → 0.1.0-beta.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/package.json +1 -1
- package/scripts/npm-install.js +3 -5
package/package.json
CHANGED
package/scripts/npm-install.js
CHANGED
|
@@ -64,11 +64,9 @@ function downloadFile(url, dest) {
|
|
|
64
64
|
function extractArchive(archivePath, destDir) {
|
|
65
65
|
const platform = os.platform();
|
|
66
66
|
if (platform === "win32") {
|
|
67
|
-
//
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{ stdio: "inherit" }
|
|
71
|
-
);
|
|
67
|
+
// Windows 10+ has tar (bsdtar) built-in which fully supports zip files.
|
|
68
|
+
// It avoids execution policy and auto-load module issues from PowerShell's Expand-Archive.
|
|
69
|
+
execSync(`tar -xf "${archivePath}" -C "${destDir}"`, { stdio: "inherit" });
|
|
72
70
|
} else {
|
|
73
71
|
execSync(`tar xzf "${archivePath}" -C "${destDir}"`, { stdio: "inherit" });
|
|
74
72
|
}
|