mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix update error
This error was caused by using super old version of electron-winstaller.
This commit is contained in:
@@ -65,14 +65,6 @@ updater.autoUpdater.on('error', (err) => {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
ipc.on('update-check', function (event, msg) {
|
||||
if (isUpdateReady) {
|
||||
mainWindow.webContents.send('update-ready', 'Update available!')
|
||||
} else {
|
||||
checkUpdate()
|
||||
}
|
||||
})
|
||||
|
||||
ipc.on('update-app-confirm', function (event, msg) {
|
||||
if (isUpdateReady) {
|
||||
mainWindow.removeAllListeners()
|
||||
@@ -116,7 +108,18 @@ app.on('ready', function () {
|
||||
checkUpdate()
|
||||
}, 1000 * 60 * 60)
|
||||
|
||||
checkUpdate()
|
||||
// Check update after 10 secs to prevent file locking of Windows
|
||||
setTimeout(() => {
|
||||
checkUpdate()
|
||||
|
||||
ipc.on('update-check', function (event, msg) {
|
||||
if (isUpdateReady) {
|
||||
mainWindow.webContents.send('update-ready', 'Update available!')
|
||||
} else {
|
||||
checkUpdate()
|
||||
}
|
||||
})
|
||||
}, 10000)
|
||||
ipcServer = require('./ipcServer')
|
||||
ipcServer.server.start()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user