From 6b56b1c2453304bcee58d60349dd9d9a7dc6b0f7 Mon Sep 17 00:00:00 2001 From: Harshit Singh Bhandari Date: Mon, 29 Jun 2026 03:37:49 +0530 Subject: [PATCH] fix(update): enable allowPrerelease on the nightly channel (#2265) Nightly builds publish as GitHub prereleases. configureFeed set channel and allowDowngrade but never allowPrerelease, which defaults to false, so electron-updater only inspected the latest NON-prerelease release (e.g. v0.10.0) and 404d looking for nightly-mac.yml there. The nightly channel therefore never resolved, regardless of whether a nightly was published. Set allowPrerelease = (channel === nightly): nightly scans prereleases and finds the nightly feed; stable stays on non-prereleases only. Co-authored-by: Claude Opus 4.8 --- frontend/src/main/auto-updater.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/main/auto-updater.ts b/frontend/src/main/auto-updater.ts index bf8fceb82..1c8527b15 100644 --- a/frontend/src/main/auto-updater.ts +++ b/frontend/src/main/auto-updater.ts @@ -17,6 +17,11 @@ import { // checkForUpdates. function configureFeed(channel: UpdateChannel): void { autoUpdater.channel = channel; // "latest" | "nightly" + // Nightly builds ship as GitHub *prereleases*. With allowPrerelease false + // (the default) electron-updater only inspects the latest NON-prerelease + // release and looks for nightly-mac.yml there, which 404s. Enable prerelease + // scanning on the nightly channel only; stable must never pull prereleases. + autoUpdater.allowPrerelease = channel === "nightly"; autoUpdater.allowDowngrade = true; // permits a nightly -> stable channel switch }