1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-05 09:10:53 +01:00

ELECTRON_NO_UPDATER env variable to disable auto-updates

This commit is contained in:
Kyle Spearrin 2018-08-25 08:30:06 -04:00
parent c0fd5f71f8
commit 7d0583f47b

View File

@ -34,7 +34,8 @@ export class UpdaterMain {
const linuxCanUpdate = process.platform === 'linux' && isAppImage();
const windowsCanUpdate = process.platform === 'win32' && !isWindowsStore() && !isWindowsPortable();
const macCanUpdate = process.platform === 'darwin' && !isMacAppStore();
this.canUpdate = linuxCanUpdate || windowsCanUpdate || macCanUpdate;
this.canUpdate = process.env.ELECTRON_NO_UPDATER !== '1' &&
(linuxCanUpdate || windowsCanUpdate || macCanUpdate);
}
async init() {