satoridb 1.1.1 → 1.1.2

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/package.json +1 -1
  2. package/postinstall.js +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "satoridb",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Install satori",
5
5
  "bin" : {
6
6
  "satori" : "cli.js"
package/postinstall.js CHANGED
@@ -15,7 +15,7 @@ if (platform === "linux") fileName = "lin/satori-linux.zip";
15
15
  else if (platform === "darwin") fileName = "mac/satori-mac.zip";
16
16
  else if (platform === "win32") fileName = "win/satori-win.zip";
17
17
  else {
18
- console.error("❌ Plataforma no soportada:", platform);
18
+ console.error("❌ Not supported platform:", platform);
19
19
  process.exit(1);
20
20
  }
21
21
 
@@ -32,7 +32,7 @@ function downloadZip(url, dest, cb) {
32
32
  const file = fs.createWriteStream(dest);
33
33
  https.get(url, response => {
34
34
  if (response.statusCode !== 200) {
35
- console.error("❌ Fallo al descargar el binario:", response.statusCode);
35
+ console.error("❌ Download failed:", response.statusCode);
36
36
  process.exit(1);
37
37
  }
38
38
 
@@ -41,7 +41,7 @@ function downloadZip(url, dest, cb) {
41
41
  file.close(cb);
42
42
  });
43
43
  }).on('error', err => {
44
- console.error("❌ Error de red:", err.message);
44
+ console.error("❌ Network error:", err.message);
45
45
  process.exit(1);
46
46
  });
47
47
  }
@@ -53,25 +53,25 @@ function extractZip(src, dest) {
53
53
  zip.extractAllTo(dest, true);
54
54
  if (platform !== "win32") chmodSync(path.join(dest, binName), 0o755);
55
55
  } catch (err) {
56
- console.error("❌ Error al extraer el zip:", err.message);
56
+ console.error("❌ Error extracting zip:", err.message);
57
57
  process.exit(1);
58
58
  }
59
59
  }
60
60
 
61
61
  // Ejecutar
62
- console.log(`🔽 Descargando Satori para ${platform}/${arch}...`);
62
+ console.log(`🔽 Downloading Satori ${platform}/${arch}...`);
63
63
 
64
64
  downloadZip(`${baseURL}/${fileName}`, zipPath, () => {
65
65
  fs.mkdirSync(installDir, { recursive: true });
66
66
  extractZip(zipPath, installDir);
67
- console.log(`✅ Binario instalado en: ${binFullPath}\n`);
67
+ console.log(`✅ Binary installed in: ${binFullPath}\n`);
68
68
 
69
69
  const shell = process.env.SHELL || "";
70
70
  const profileFile = shell.includes("zsh") ? ".zshrc" : ".bashrc";
71
71
 
72
72
  const exportLine = `export PATH="$HOME/.satori/bin:$PATH"`;
73
73
 
74
- console.log(`💡 Añade esto a tu ~/${profileFile}:\n`);
74
+ console.log(`💡 Add this to your ~/${profileFile}:\n`);
75
75
  console.log(` ${exportLine}\n`);
76
- console.log(`Luego ejecuta: source ~/${profileFile}\n`);
76
+ console.log(`Then run: source ~/${profileFile}\n`);
77
77
  });