How to use the electron-updater.autoUpdater.quitAndInstall function in electron-updater

To help you get started, we’ve selected a few electron-updater examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github z------------- / CPod / main.js View on Github external
dialog.showMessageBox(win, messageBoxOptions, (responseIndex) => {
    if (responseIndex === messageBoxOptions.defaultId) {
      autoUpdater.quitAndInstall()
    }
  })
})
github lbryio / lbry-desktop / electron / index.js View on Github external
ipcMain.on('autoUpdateAccepted', () => {
  appState.autoUpdateAccepted = true;
  autoUpdater.quitAndInstall();
});
github DEgITx / rats-search / src / background / background.js View on Github external
}, (buttonIndex) => {
			if (buttonIndex === 0) {
				const isSilent = true;
				const isForceRunAfter = true; 
				autoUpdater.quitAndInstall(isSilent, isForceRunAfter); 
			}
		})
	}
github Superjo149 / auryo / src / main / features / core / appUpdater.ts View on Github external
this.on(EVENTS.APP.UPDATE, () => {
      if (this.hasUpdate) {
        this.logger.info('Updating now!');

        if (is.linux() || is.macOS()) {
          shell.openExternal('http://auryo.com#downloads');
        } else {
          autoUpdater.quitAndInstall(true, true);
        }
      }
    });
  }
github Gapminder / gapminder-offline / main.ts View on Github external
ipc.on('start-update', () => {
    autoUpdater.quitAndInstall();
  });
github fulcrumapp / fulcrum-desktop / src / auto-updater.js View on Github external
setTimeout(function() {
    autoUpdater.quitAndInstall();
  }, 5000);
});
github alexanderwe / checksum-validator / app / main / src / AppUpdater.ts View on Github external
public quitAndInstall = () => {
    autoUpdater.quitAndInstall();
  }
github jackrobertscott / forge / packages / client / public / electron.js View on Github external
ipcMain.on('quitAndUpdate', () => autoUpdater.quitAndInstall());