File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ const LOG_FILE_MAX_FILES = 10;
5858const APP_RUN_ID = Crypto . randomBytes ( 6 ) . toString ( "hex" ) ;
5959const AUTO_UPDATE_STARTUP_DELAY_MS = 15_000 ;
6060const AUTO_UPDATE_POLL_INTERVAL_MS = 4 * 60 * 60 * 1000 ;
61+ const DESKTOP_UPDATE_CHANNEL = "latest" ;
62+ const DESKTOP_UPDATE_ALLOW_PRERELEASE = false ;
6163
6264type 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" , ( ) => {
You can’t perform that action at this time.
0 commit comments