Skip to content

Commit fb61a29

Browse files
committed
Force desktop auto-updates to stable latest channel
- set Electron updater channel to `latest` - disable prerelease and downgrade updates regardless of app version
1 parent 0d31aff commit fb61a29

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/desktop/src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const LOG_FILE_MAX_FILES = 10;
5858
const APP_RUN_ID = Crypto.randomBytes(6).toString("hex");
5959
const AUTO_UPDATE_STARTUP_DELAY_MS = 15_000;
6060
const AUTO_UPDATE_POLL_INTERVAL_MS = 4 * 60 * 60 * 1000;
61+
const DESKTOP_UPDATE_CHANNEL = "latest";
62+
const DESKTOP_UPDATE_ALLOW_PRERELEASE = false;
6163

6264
type DesktopUpdateErrorContext = DesktopUpdateState["errorContext"];
6365

@@ -725,7 +727,10 @@ function configureAutoUpdater(): void {
725727

726728
autoUpdater.autoDownload = false;
727729
autoUpdater.autoInstallOnAppQuit = false;
728-
autoUpdater.allowPrerelease = app.getVersion().includes("-");
730+
// Keep alpha branding, but force all installs onto the stable update track.
731+
autoUpdater.channel = DESKTOP_UPDATE_CHANNEL;
732+
autoUpdater.allowPrerelease = DESKTOP_UPDATE_ALLOW_PRERELEASE;
733+
autoUpdater.allowDowngrade = false;
729734
let lastLoggedDownloadMilestone = -1;
730735

731736
autoUpdater.on("checking-for-update", () => {

0 commit comments

Comments
 (0)