fix(desktop): packaged macOS app launched with no window / blank white screen
In packaged Electron builds, `process.argv[1]` is undefined (Electron loads the main script via package.json `main`, not via argv), so the bottom-of-file guard never invoked `run()` and the app started without creating a window. Also build the dashboard client with `--base ./` so its `file://`-loaded index.html resolves `./assets/*` from inside the asar instead of the filesystem root, which was producing a blank white window. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/desktop-packaged-app-blank-window.md
Normal file
5
.changeset/desktop-packaged-app-blank-window.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Fix Fusion desktop (Electron) packaged builds opening a blank window — or no window at all — on macOS. `run()` is now invoked in packaged builds (where `process.argv[1]` is unset by Electron), and the dashboard client is built with a relative `--base ./` so its `file://`-loaded `index.html` can resolve `./assets/*` from inside the asar.
|
||||
Reference in New Issue
Block a user