diff --git a/fluxer_desktop/src/main/Updater.ts b/fluxer_desktop/src/main/Updater.ts index 3d25b35..85b174d 100644 --- a/fluxer_desktop/src/main/Updater.ts +++ b/fluxer_desktop/src/main/Updater.ts @@ -3,9 +3,7 @@ import {createRequire} from 'node:module'; import {BUILD_CHANNEL} from '@electron/common/BuildChannel'; import {DESKTOP_BUILD_VARIANT} from '@electron/common/BuildVariant'; -import {isPortableMode} from '@electron/common/UserDataPath'; import {destroyDesktopTray} from '@electron/main/DesktopTray'; -import {isFlatpakRuntime} from '@electron/main/LinuxSandbox'; import {setQuitting} from '@electron/main/Window'; import {app, autoUpdater, type BrowserWindow, ipcMain} from 'electron'; import log from 'electron-log'; @@ -602,25 +600,9 @@ function registerManualUpdater( } export function registerUpdater(getMainWindow: () => BrowserWindow | null) { - if (!app.isPackaged) { - registerManualUpdater(getMainWindow, 'unpackaged'); - return; - } - if (isPortableMode()) { - registerManualUpdater(getMainWindow, 'platform'); - return; - } - if (isFlatpakRuntime()) { - registerManualUpdater(getMainWindow, 'managed-package'); - return; - } - if (process.platform === 'win32') { - registerVelopackUpdater(getMainWindow); - return; - } - if (process.platform === 'darwin') { - registerElectronUpdater(getMainWindow); - return; - } - registerManualUpdater(getMainWindow, 'platform'); + // This fork points at a self-hosted instance and has no update feed of its + // own -- never check fluxer.app for updates on any platform (would either + // silently fail against the official feed or, worse, offer to replace this + // build with the stock one). Always use the fully inert IPC-only path. + registerManualUpdater(getMainWindow, 'unpackaged'); }