fix(updater): use desktop host updater from web (#3227)

This commit is contained in:
ChangeHow
2026-09-07 20:26:59 +03:00
committed by GitHub
parent 928bb3eae0
commit 1306b1124c
8 changed files with 179 additions and 6 deletions
+15
View File
@@ -11,12 +11,27 @@ export interface WebUiServerController {
stop: (options?: { exitProcess?: boolean }) => Promise<void>;
}
export interface DesktopUpdateInfo {
available: boolean;
currentVersion?: string;
version?: string | null;
body?: string | null;
date?: string | null;
}
export interface DesktopUpdater {
check: () => Promise<DesktopUpdateInfo>;
install: () => Promise<DesktopUpdateInfo>;
restart: () => Promise<void> | void;
}
export interface StartWebUiServerOptions {
port?: number;
host?: string;
attachSignals?: boolean;
exitOnShutdown?: boolean;
uiPassword?: string | null;
desktopUpdater?: DesktopUpdater;
}
export declare function startWebUiServer(