Revert "prevent autoupdater from setting release channel (#1396)"

This reverts commit 614761efd7.
This commit is contained in:
jeffvli
2025-12-15 23:06:25 -08:00
parent 68b6a58ac5
commit 9a8cb45510
2 changed files with 12 additions and 12 deletions
+12 -3
View File
@@ -46,15 +46,24 @@ export default class AppUpdater {
const isBetaVersion = packageJson.version.includes('-beta');
const releaseChannel = store.get('release_channel');
const isNotConfigured = !releaseChannel;
console.log('[AppUpdater] Release channel from store: ', releaseChannel);
console.log('[AppUpdater] Is beta version: ', isBetaVersion);
console.log('Release channel: ', releaseChannel);
console.log('Is beta version: ', isBetaVersion);
if (isNotConfigured) {
console.log(
'Release channel not configured, setting to ',
isBetaVersion ? 'beta' : 'latest',
);
store.set('release_channel', isBetaVersion ? 'beta' : 'latest');
}
if (releaseChannel === 'beta') {
autoUpdater.channel = 'beta';
autoUpdater.allowPrerelease = true;
autoUpdater.disableDifferentialDownload = true;
} else {
} else if (releaseChannel === 'latest') {
autoUpdater.channel = 'latest';
autoUpdater.allowDowngrade = true;
autoUpdater.allowPrerelease = false;
@@ -110,15 +110,6 @@ export const useSyncSettingsToMain = () => {
JSON.stringify(mainValueNormalized) !== JSON.stringify(rendererValueNormalized)
) {
hasDifferences = true;
logFn.warn(logMsg.system.settingsSynchronized, {
meta: {
mainStoreKey: mapping.mainStoreKey,
mainValue: mainValueNormalized,
rendererValue: rendererValueNormalized,
},
});
localSettings.set(mapping.mainStoreKey, rendererValue);
}
}