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() { 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)
} // }
} }