@code-company/pulsetray 0.1.8 → 0.1.10

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # PulseTray
1
+ # iTransform Pulse
2
2
 
3
- Este pacote instala a versão portátil do PulseTray a partir da GitHub Release
3
+ Este pacote instala a versão portátil do iTransform Pulse a partir da GitHub Release
4
4
  correspondente. O download é validado com SHA-256 e não executa instaladores
5
5
  administrativos.
6
6
 
package/bin/pulsetray.cjs CHANGED
@@ -7,7 +7,7 @@ const { spawn } = require("node:child_process");
7
7
  const pkg = require("../package.json");
8
8
 
9
9
  if (process.argv.includes("--help") || process.argv.includes("-h")) {
10
- console.log(`PulseTray ${pkg.version}
10
+ console.log(`iTransform Pulse ${pkg.version}
11
11
 
12
12
  Uso:
13
13
  pulsetray Inicia o aplicativo
@@ -16,13 +16,13 @@ Uso:
16
16
  process.exit(0);
17
17
  }
18
18
  if (process.argv.includes("--version") || process.argv.includes("-v")) {
19
- console.log(`PulseTray ${pkg.version}`);
19
+ console.log(`iTransform Pulse ${pkg.version}`);
20
20
  process.exit(0);
21
21
  }
22
22
 
23
23
  const executable = process.platform === "darwin"
24
- ? path.join(__dirname, "..", "native", "PulseTray.app", "Contents", "MacOS", "PulseTray")
25
- : path.join(__dirname, "..", "native", "PulseTray.exe");
24
+ ? path.join(__dirname, "..", "native", "iTransform Pulse.app", "Contents", "MacOS", "iTransform Pulse")
25
+ : path.join(__dirname, "..", "native", "iTransform Pulse.exe");
26
26
 
27
27
  if (process.platform !== "darwin" && process.platform !== "win32") {
28
28
  console.error(`pulsetray: sistema não suportado: ${process.platform}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@code-company/pulsetray",
3
- "version": "0.1.8",
4
- "description": "Portable PulseTray installer and launcher",
3
+ "version": "0.1.10",
4
+ "description": "Portable iTransform Pulse installer and launcher",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/codecompany/itransform-tray-app#readme",
7
7
  "repository": {
@@ -15,10 +15,10 @@ function fail(message) {
15
15
 
16
16
  function target(platform, arch, version) {
17
17
  if (platform === "darwin" && (arch === "x64" || arch === "arm64")) {
18
- return `PulseTray-${version}-mac-${arch}.zip`;
18
+ return `iTransform-Pulse-${version}-mac-${arch}.zip`;
19
19
  }
20
20
  if (platform === "win32" && arch === "x64") {
21
- return `PulseTray-${version}-windows-x64-portable.exe`;
21
+ return `iTransform-Pulse-${version}-windows-x64-portable.exe`;
22
22
  }
23
23
  return null;
24
24
  }
@@ -108,12 +108,14 @@ async function install(downloaded, root) {
108
108
  const result = spawnSync("/usr/bin/ditto", ["-x", "-k", downloaded, next], { stdio: "inherit" });
109
109
  if (result.status !== 0) throw new Error("não foi possível extrair o pacote macOS");
110
110
  } else {
111
- await fs.promises.rename(downloaded, path.join(next, "PulseTray.exe"));
111
+ await fs.promises.rename(downloaded, path.join(next, "iTransform Pulse.exe"));
112
112
  }
113
113
  const executable = process.platform === "darwin"
114
- ? path.join(next, "PulseTray.app", "Contents", "MacOS", "PulseTray")
115
- : path.join(next, "PulseTray.exe");
116
- if (!fs.existsSync(executable)) throw new Error("o artefato portátil não contém o executável PulseTray");
114
+ ? path.join(next, "iTransform Pulse.app", "Contents", "MacOS", "iTransform Pulse")
115
+ : path.join(next, "iTransform Pulse.exe");
116
+ if (!fs.existsSync(executable)) {
117
+ throw new Error("o artefato portátil não contém o executável iTransform Pulse");
118
+ }
117
119
  await fs.promises.rm(previous, { recursive: true, force: true });
118
120
  if (fs.existsSync(root)) await fs.promises.rename(root, previous);
119
121
  try {