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:
parent
c0fd5f71f8
commit
7d0583f47b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user