@swmansion/argent 0.16.1 → 0.16.2-next.1

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.
@@ -21,11 +21,16 @@ const fs = require("node:fs");
21
21
  const platformKey =
22
22
  process.platform === "linux" && process.arch === "arm64" ? "linux-arm64" : process.platform;
23
23
 
24
- const binary = path.join(__dirname, platformKey, "simulator-server");
24
+ // PE `.exe` on Windows, extensionless ELF/Mach-O elsewhere. Mirrors
25
+ // simulatorServerBinaryName() in @argent/native-devtools-ios; inlined because
26
+ // this file ships verbatim as the npm `bin` entry and can't import.
27
+ const binaryName = process.platform === "win32" ? "simulator-server.exe" : "simulator-server";
28
+
29
+ const binary = path.join(__dirname, platformKey, binaryName);
25
30
  if (!fs.existsSync(binary)) {
26
31
  console.error(
27
32
  `argent-simulator-server: no binary for platform "${platformKey}" at ${binary}.\n` +
28
- `Supported hosts today: darwin, linux (x86_64 and arm64).`
33
+ `Supported hosts today: darwin, linux (x86_64 and arm64), win32.`
29
34
  );
30
35
  process.exit(1);
31
36
  }
Binary file
Binary file
Binary file
Binary file