Skip to content

Commit bd53a5b

Browse files
committed
Fix: restore allowDowngrade=true for nightly channel to enable periodic nightly update checks
The previous change hardcoded allowDowngrade=false, which breaks periodic update checks after a stable-to-nightly switch. Since nightly pre-release versions (e.g. 0.0.17-nightly.*) are semver-lower than their stable counterparts (e.g. 0.0.17), electron-updater needs allowDowngrade=true on the nightly channel to discover these updates during startup, poll, and menu-triggered checks.
1 parent 4fbdb6c commit bd53a5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/desktop/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,9 @@ function createBaseUpdateState(
11391139
function applyAutoUpdaterChannel(channel: DesktopUpdateChannel): void {
11401140
autoUpdater.channel = channel;
11411141
autoUpdater.allowPrerelease = channel === "nightly";
1142-
autoUpdater.allowDowngrade = false;
1142+
autoUpdater.allowDowngrade = channel === "nightly";
11431143
console.info(
1144-
`[desktop-updater] Using update channel '${channel}' (allowPrerelease=${channel === "nightly"}, allowDowngrade=false).`,
1144+
`[desktop-updater] Using update channel '${channel}' (allowPrerelease=${channel === "nightly"}, allowDowngrade=${channel === "nightly"}).`,
11451145
);
11461146
}
11471147

0 commit comments

Comments
 (0)