Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed Oct 15, 2024
1 parent 4a71c4e commit 0934d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as Sentry from '@sentry/electron/main';
import { initProtocol } from './modules/protocol';
import { restoreOrCreateWindow } from './mainWindow';
import './security-restrictions';
import { getOSName, PLATFORM } from './helpers';

// Initialize Sentry
Sentry.init({
Expand Down Expand Up @@ -82,7 +83,8 @@ function updateAppAndQuit() {
});
updater.autoUpdater.on('update-downloaded', _info => {
log.info('[Main Window][AutoUpdater] Update downloaded');
app.quit();
const silent = getOSName() === PLATFORM.WINDOWS;
updater.autoUpdater.quitAndInstall(silent, false);
});
updater.autoUpdater.on('error', err => {
log.error('[Main Window][AutoUpdater] Error in auto-updater', err);
Expand Down

0 comments on commit 0934d02

Please sign in to comment.