fix(desktop): app icon + harden auto-updater loading

Generate a 1024x1024 macOS app icon from the dashboard logo so packaged
builds carry the Fusion brand instead of the default Electron icon, and
load electron-updater dynamically inside a try/catch so packaged builds
tolerate CJS/ESM interop quirks and missing transitive deps. Widen the
electron-builder files whitelist to include electron-updater's
transitive dep tree so they are actually bundled into the asar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-16 12:51:12 -07:00
parent c6e978286a
commit 6dde53ff0d
9 changed files with 89 additions and 27 deletions

View File

@@ -96,6 +96,7 @@ vi.mock("electron", () => ({
}));
vi.mock("electron-updater", () => ({
default: { autoUpdater: mocks.autoUpdater },
autoUpdater: mocks.autoUpdater,
}));