1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-02 11:44:01 +03:00

handle squirrel errors in updater

This commit is contained in:
Eugene Pankov 2021-05-13 16:54:27 +02:00
parent 5c22e22caa
commit 76ffef751c
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -84,7 +84,12 @@ export class UpdaterService {
this.electron.autoUpdater.on('error', onError)
this.electron.autoUpdater.on('update-not-available', onNoUpdate)
this.electron.autoUpdater.on('update-available', onUpdate)
this.electron.autoUpdater.checkForUpdates()
try {
this.electron.autoUpdater.checkForUpdates()
} catch (e) {
this.electronUpdaterAvailable = false
this.logger.info('Electron updater unavailable, falling back', e)
}
})
this.electron.autoUpdater.on('update-available', () => {