electrobun 0.0.19-beta.120 → 0.0.19-beta.129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.120",
3
+ "version": "0.0.19-beta.129",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
package/src/cli/index.ts CHANGED
@@ -693,6 +693,13 @@ function escapePathForTerminal(filePath: string) {
693
693
 
694
694
  return escapedPath;
695
695
  }
696
+
697
+ function sanitizeVolumeNameForHdiutil(volumeName: string) {
698
+ // Remove or replace characters that cause issues with hdiutil volume mounting
699
+ // Parentheses and other special characters can cause "Operation not permitted" errors
700
+ return volumeName.replace(/[()]/g, '');
701
+ }
702
+
696
703
  // MyApp
697
704
 
698
705
  // const appName = config.app.name.replace(/\s/g, '-').toLowerCase();
@@ -1563,7 +1570,7 @@ if (commandArg === "init") {
1563
1570
  // hdiutil create -volname "YourAppName" -srcfolder /path/to/YourApp.app -ov -format UDZO YourAppName.dmg
1564
1571
  // Note: use ULFO (lzfse) for better compatibility with large CEF frameworks and modern macOS
1565
1572
  execSync(
1566
- `hdiutil create -volname "${appFileName}" -srcfolder ${escapePathForTerminal(
1573
+ `hdiutil create -volname "${sanitizeVolumeNameForHdiutil(appFileName)}" -srcfolder ${escapePathForTerminal(
1567
1574
  selfExtractingBundle.appBundleFolderPath
1568
1575
  )} -ov -format ULFO ${escapePathForTerminal(dmgPath)}`
1569
1576
  );
@@ -7,6 +7,6 @@
7
7
  "start": "electrobun build && electrobun dev"
8
8
  },
9
9
  "dependencies": {
10
- "electrobun": "0.0.19-beta.120"
10
+ "electrobun": "0.0.19-beta.129"
11
11
  }
12
12
  }
@@ -134,4 +134,11 @@ const mainWindow = new BrowserWindow({
134
134
  // Store reference to mainWindow RPC for sending messages
135
135
  mainRPC = mainWindow.webview.rpc;
136
136
 
137
+ // Listen for window close event and exit the app
138
+ // For this browser app, we want to exit when the main window is closed
139
+ mainWindow.on("close", () => {
140
+ console.log("🚪 Main window closed - exiting app");
141
+ process.exit(0);
142
+ });
143
+
137
144
  console.log("✅ Multitab Browser initialized");