@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.
Files changed (2) hide show
  1. package/install.js +2 -6
  2. 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" ? ".zip" : ".tar.gz";
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
- if (ext === ".tar.gz") {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getimole/imole",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "🐹 Back up, clean, and slim down your iPhone from the terminal",
5
5
  "keywords": [
6
6
  "iphone",
@@ -39,4 +39,4 @@
39
39
  "x64",
40
40
  "arm64"
41
41
  ]
42
- }
42
+ }