From 80292ae5793109fe4390dbbb0bfb217eb615c246 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 12 Feb 2026 17:55:52 -0800 Subject: [PATCH] fix alpha autoupdater logic to use correct config for latest --- src/main/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 4b90dc638..711d3e207 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -55,6 +55,12 @@ const ALPHA_UPDATER_CONFIG: { provider: 's3', }; +const GITHUB_UPDATER_CONFIG = { + owner: 'jeffvli', + provider: 'github' as const, + repo: 'feishin', +}; + type UpdaterInstance = AppImageUpdater | MacUpdater | NsisUpdater | typeof autoUpdater; class AppUpdater { @@ -97,6 +103,7 @@ async function checkAllChannelsAndGetBest(): Promise<{ alphaUpdater.allowDowngrade = true; try { + console.log('Checking for updates on alpha channel'); const alphaResult = await alphaUpdater.checkForUpdates(); if ( alphaResult?.updateInfo?.version && @@ -111,7 +118,9 @@ async function checkAllChannelsAndGetBest(): Promise<{ } try { + autoUpdater.setFeedURL(GITHUB_UPDATER_CONFIG); configureAutoUpdaterForChannel('latest'); + console.log('Checking for updates on latest channel (GitHub)'); const latestResult = await autoUpdater.checkForUpdates(); if ( latestResult?.updateInfo?.version &&