vibora 0.1.14 → 1.0.0

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/bin/vibora.js CHANGED
@@ -532,7 +532,17 @@ async function handleUpCommand(flags) {
532
532
  const port = getPort(flags.port);
533
533
  const packageRoot = getPackageRoot();
534
534
  const serverPath = join3(packageRoot, "server", "index.js");
535
- const ptyLibPath = join3(packageRoot, "lib", "librust_pty.so");
535
+ const platform = process.platform;
536
+ const arch = process.arch;
537
+ let ptyLibName;
538
+ if (platform === "darwin") {
539
+ ptyLibName = arch === "arm64" ? "librust_pty_arm64.dylib" : "librust_pty.dylib";
540
+ } else if (platform === "win32") {
541
+ ptyLibName = "rust_pty.dll";
542
+ } else {
543
+ ptyLibName = arch === "arm64" ? "librust_pty_arm64.so" : "librust_pty.so";
544
+ }
545
+ const ptyLibPath = join3(packageRoot, "lib", ptyLibName);
536
546
  console.error("Starting Vibora server...");
537
547
  const serverProc = spawn("bun", [serverPath], {
538
548
  detached: true,