chore: TODO electron-updater

This commit is contained in:
草鞋没号 2021-11-08 20:42:31 +08:00
parent 5f418ec731
commit 33566eb44a

View File

@ -43,8 +43,9 @@ app.on('second-instance', () => {
} }
}) })
// @TODO
// auto update // auto update
if (app.isPackaged) { /* if (app.isPackaged) {
app.whenReady() app.whenReady()
.then(() => import('electron-updater')) .then(() => import('electron-updater'))
.then(({ autoUpdater }) => autoUpdater.checkForUpdatesAndNotify()) .then(({ autoUpdater }) => autoUpdater.checkForUpdatesAndNotify())
@ -52,4 +53,4 @@ if (app.isPackaged) {
// maybe you need to record some log files. // maybe you need to record some log files.
console.error('Failed check update:', e) console.error('Failed check update:', e)
) )
} } */