Remove auto updater feature toggle. (#3138)

This commit is contained in:
Krzysztof Jelski 2020-07-07 18:12:46 +02:00 committed by GitHub
parent 21a3be7ad3
commit 244d07e5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View File

@ -3,7 +3,6 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { app } from 'electron';
import { features } from '../featureToggles';
import { registerAccountStoreHandlers } from '../main/account-store';
import { setupAutoUpdater } from './autoUpdater';
import { createWindow } from './window';
@ -13,10 +12,7 @@ const ENV = process.env.NODE_ENV || 'production';
const onReady = async () => {
registerAccountStoreHandlers();
await createWindow(ENV);
if (features.autoUpdater) {
await setupAutoUpdater();
}
await setupAutoUpdater();
};
app.whenReady().then(onReady).catch(console.error);

View File

@ -1,11 +0,0 @@
// Copyright 2017-2020 @polkadot/apps authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
function getBoolEnv (env: string | undefined, fallback: boolean) {
return env ? (env) !== 'false' : fallback;
}
export const features = {
autoUpdater: getBoolEnv(process.env.POLKADOT_APPS_FEATURE_AUTOUPDATER, false)
};