feat(FN-5022): merge fusion/fn-5022

This commit is contained in:
gsxdsm
2026-05-18 05:46:37 -07:00
parent 54bb1651b7
commit dd0d4b74b7
15 changed files with 400 additions and 53 deletions

View File

@@ -1,5 +1,10 @@
import { app, type BrowserWindow, ipcMain, type Tray } from "electron";
import { setupAutoUpdater, showExportSettingsDialog, showImportSettingsDialog, type NormalizedDesktopRemoteLaunch } from "./native.js";
import {
showExportSettingsDialog,
showImportSettingsDialog,
triggerUpdateCheck,
type NormalizedDesktopRemoteLaunch,
} from "./native.js";
import { type EngineStatus, updateTrayStatus } from "./tray.js";
import {
applyDeleteProfile,
@@ -95,10 +100,9 @@ export function registerIpcHandlers(mainWindow: BrowserWindow, tray: Tray, optio
appVersion: app.getVersion(),
}));
ipcMain.handle("app:checkForUpdates", () => {
ipcMain.handle("app:checkForUpdates", async () => {
try {
setupAutoUpdater(mainWindow);
return { status: "checking" as const };
return await triggerUpdateCheck(mainWindow);
} catch (error) {
return { status: "error" as const, error: error instanceof Error ? error.message : String(error) };
}