feat(desktop): prefer the bundled renderer, own update prompts (#3341)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 03:01:15 +02:00
1 parent 7a5b9a0ded
commit 5072488f1e
33 files changed
+2197 -113

No files matched your search

+9
View File
@@ -136,6 +136,15 @@ async function fetchManualLatest(options: {forceRefresh?: boolean} = {}): Promis
return info;
}
export async function findNewerManualShell(): Promise<ManualLatestInfo | null> {
const plan = resolveShellUpdatePlan();
if (plan.capability !== ShellUpdateCapability.MANUAL_DOWNLOAD || plan.reason !== 'platform') {
return null;
}
const latest = await fetchManualLatest({forceRefresh: true});
return compareVersions(latest.version, app.getVersion()) > 0 ? latest : null;
}
function sendManualUpdateAvailable(
getMainWindow: () => BrowserWindow | null,
context: UpdaterContext,