mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-04-08 13:07:17 +08:00
chore: TODO electron-updater
This commit is contained in:
parent
5f418ec731
commit
33566eb44a
@ -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)
|
||||||
)
|
)
|
||||||
}
|
} */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user