installUpdateAndRestart() {
    // Prevent the app from applying the same update
    // multiple times in a row
    if (this.app.isUpdating) return;

    this.app.isQuitting = true;
    this.app.isUpdating = true;

    if (process.platform !== 'darwin') {
      autoUpdater.quitAndInstall(true, true);
    }
    else {
      this.installMacUpdate(() => {
        this.app.relaunch();
        this.app.quit();
      });
    }
  }
Restarts the application after applying update