electrobun 1.12.3 → 1.12.4-beta.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/dist/api/bun/core/Updater.ts +17 -4
- package/package.json +1 -1
- package/src/cli/index.ts +0 -1
|
@@ -1039,11 +1039,24 @@ del "%~f0"
|
|
|
1039
1039
|
|
|
1040
1040
|
// Cross-platform app launch (Windows is handled above with its own update script)
|
|
1041
1041
|
if (currentOS === "macos") {
|
|
1042
|
-
//
|
|
1042
|
+
// Wait for the current process to fully exit before relaunching.
|
|
1043
|
+
// macOS 'open' on an already-running app just activates the existing
|
|
1044
|
+
// instance instead of launching a new one, so we must ensure the
|
|
1045
|
+
// current process has exited first. The detached shell survives our
|
|
1046
|
+
// exit and polls until the process is gone.
|
|
1047
|
+
const pid = process.pid;
|
|
1043
1048
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1044
|
-
Bun.spawn(
|
|
1045
|
-
|
|
1046
|
-
|
|
1049
|
+
Bun.spawn(
|
|
1050
|
+
[
|
|
1051
|
+
"sh",
|
|
1052
|
+
"-c",
|
|
1053
|
+
`while kill -0 ${pid} 2>/dev/null; do sleep 0.5; done; sleep 1; open "${runningAppBundlePath}"`,
|
|
1054
|
+
],
|
|
1055
|
+
{
|
|
1056
|
+
detached: true,
|
|
1057
|
+
stdio: ["ignore", "ignore", "ignore"],
|
|
1058
|
+
} as any,
|
|
1059
|
+
);
|
|
1047
1060
|
} else if (currentOS === "linux") {
|
|
1048
1061
|
// On Linux, launch the launcher binary inside the app directory
|
|
1049
1062
|
const launcherPath = join(runningAppBundlePath, "bin", "launcher");
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -1087,7 +1087,6 @@ const defaultConfig = {
|
|
|
1087
1087
|
build: {
|
|
1088
1088
|
buildFolder: "build",
|
|
1089
1089
|
artifactFolder: "artifacts",
|
|
1090
|
-
targets: undefined as unknown, // Will default to current platform if not specified
|
|
1091
1090
|
useAsar: false,
|
|
1092
1091
|
asarUnpack: undefined as string[] | undefined, // Glob patterns for files to exclude from ASAR (e.g., ["*.node", "*.dll"])
|
|
1093
1092
|
cefVersion: undefined as string | undefined, // Override CEF version: "CEF_VERSION+chromium-CHROMIUM_VERSION"
|