fix: auto updater

This commit is contained in:
kangfenmao 2024-07-13 21:26:56 +08:00
parent b63e40ba51
commit 31fa49095f

View File

@ -93,6 +93,8 @@ app.whenReady().then(() => {
installExtension(REDUX_DEVTOOLS) installExtension(REDUX_DEVTOOLS)
.then((name) => console.log(`Added Extension: ${name}`)) .then((name) => console.log(`Added Extension: ${name}`))
.catch((err) => console.log('An error occurred: ', err)) .catch((err) => console.log('An error occurred: ', err))
autoUpdater.checkForUpdatesAndNotify()
}) })
// Quit when all windows are closed, except on macOS. There, it's common // Quit when all windows are closed, except on macOS. There, it's common
@ -104,7 +106,5 @@ app.on('window-all-closed', () => {
} }
}) })
autoUpdater.checkForUpdatesAndNotify()
// In this file you can include the rest of your app"s specific main process // In this file you can include the rest of your app"s specific main process
// code. You can also put them in separate files and require them here. // code. You can also put them in separate files and require them here.