electrobun 0.0.19-beta.91 → 0.0.19-beta.92

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.
@@ -558,18 +558,20 @@ start "" launcher.exe
558
558
  Bun.spawn(["sh", "-c", `${linuxLauncher} &`], { detached: true});
559
559
  break;
560
560
  }
561
- // Use native killApp to properly clean up all resources on Linux
562
- // On other platforms, process.exit works fine
563
- if (currentOS === 'linux') {
561
+ // Use native killApp to properly clean up all resources on Windows/Linux
562
+ // macOS handles process.exit correctly
563
+ if (currentOS === 'linux' || currentOS === 'win') {
564
564
  try {
565
-
566
565
  native.symbols.killApp();
566
+ // Still call process.exit as a fallback
567
567
  process.exit(0);
568
568
  } catch (e) {
569
569
  // Fallback if native binding fails
570
+ console.error('Failed to call native killApp:', e);
570
571
  process.exit(0);
571
572
  }
572
573
  } else {
574
+ // macOS handles cleanup properly with process.exit
573
575
  process.exit(0);
574
576
  }
575
577
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.91",
3
+ "version": "0.0.19-beta.92",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",