mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
feat(desktop): prefer the bundled renderer, own update prompts (#3341)
This commit is contained in:
1 parent
7a5b9a0ded
commit
5072488f1e
33 files changed
+2197
-113
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user