@getimole/imole 0.3.6 → 0.3.7
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 +2 -6
- package/package.json +2 -2
package/install.js
CHANGED
|
@@ -34,7 +34,7 @@ function getPlatformInfo() {
|
|
|
34
34
|
`Supported: darwin/linux/win32 x64/arm64`
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
const ext = platform === "windows" ? ".
|
|
37
|
+
const ext = platform === "windows" ? ".exe" : "";
|
|
38
38
|
const filename = `${NAME}-${platform}-${arch}${ext}`;
|
|
39
39
|
const binaryName = platform === "windows" ? `${NAME}.exe` : NAME;
|
|
40
40
|
return { platform, arch, ext, filename, binaryName };
|
|
@@ -145,11 +145,7 @@ async function main() {
|
|
|
145
145
|
const url = `https://github.com/${GITHUB_REPO}/releases/download/${VERSION}/${filename}`;
|
|
146
146
|
const data = await download(url);
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
extractTarGz(data, binDir, binaryName);
|
|
150
|
-
} else {
|
|
151
|
-
extractZip(data, binDir, binaryName);
|
|
152
|
-
}
|
|
148
|
+
fs.writeFileSync(binaryPath, data);
|
|
153
149
|
|
|
154
150
|
if (platform !== "windows") {
|
|
155
151
|
fs.chmodSync(binaryPath, 0o755);
|
package/package.json
CHANGED