Disable auto update
Auto update is buggy https://github.com/electron-userland/electron-builder/issues/3681
This commit is contained in:
@@ -7,17 +7,17 @@ export function shouldAutoUpdate(build: BuildInfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function handleAutoUpdate() {
|
export function handleAutoUpdate() {
|
||||||
autoUpdater.on('update-available', (info: UpdateInfo) => {
|
// autoUpdater.on('update-available', (info: UpdateInfo) => {
|
||||||
console.log('There is an update available')
|
// console.log('There is an update available')
|
||||||
})
|
// })
|
||||||
|
|
||||||
autoUpdater.on('error', () => {
|
// autoUpdater.on('error', (error) => {
|
||||||
console.log('could not update due to error')
|
// console.error('could not update due to error', error)
|
||||||
})
|
// })
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
autoUpdater.checkForUpdatesAndNotify()
|
// autoUpdater.checkForUpdatesAndNotify()
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error(error)
|
// console.error(error)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user