perf: Health snapshot changes

This commit is contained in:
2026-03-30 00:28:45 +02:00
parent eb23fd71ec
commit 109402cdd6
5 changed files with 109 additions and 25 deletions

View File

@@ -28,6 +28,7 @@ import {
getDesktopUpdateState,
handleDesktopSettingsChanged,
restartToApplyUpdate,
readDesktopUpdateServerHealth,
type DesktopUpdateServerContext
} from '../update/desktop-updater';
import { consumePendingDeepLink } from '../app/deep-links';
@@ -317,6 +318,10 @@ export function setupSystemHandlers(): void {
ipcMain.handle('get-auto-update-state', () => getDesktopUpdateState());
ipcMain.handle('get-auto-update-server-health', async (_event, serverUrl: string) => {
return await readDesktopUpdateServerHealth(serverUrl);
});
ipcMain.handle('configure-auto-update-context', async (_event, context: Partial<DesktopUpdateServerContext>) => {
return await configureDesktopUpdaterContext(context);
});