Disable auto-update checks entirely
This fork has no update feed of its own, so never check fluxer.app for updates on any platform (Velopack/electron autoUpdater/manual check flows all pointed at the official API). Forces the fully inert IPC-only updater path unconditionally; the "Check for Updates" UI still works, it just reports unsupported instead of hitting the network.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user