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
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
|
);
|
|
@@ -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");
|