Disable auto update

Auto update is buggy https://github.com/electron-userland/electron-builder/issues/3681
This commit is contained in:
Thomas Nordquist
2019-05-02 09:12:59 +02:00
parent a411d21133
commit 397b95f9e5

View File

@@ -7,17 +7,17 @@ export function shouldAutoUpdate(build: BuildInfo) {
}
export function handleAutoUpdate() {
autoUpdater.on('update-available', (info: UpdateInfo) => {
console.log('There is an update available')
})
// autoUpdater.on('update-available', (info: UpdateInfo) => {
// console.log('There is an update available')
// })
autoUpdater.on('error', () => {
console.log('could not update due to error')
})
// autoUpdater.on('error', (error) => {
// console.error('could not update due to error', error)
// })
try {
autoUpdater.checkForUpdatesAndNotify()
} catch (error) {
console.error(error)
}
// try {
// autoUpdater.checkForUpdatesAndNotify()
// } catch (error) {
// console.error(error)
// }
}