Use Squirrel.Windows --checkForUpdate
Avoid downloading updates twice. Fix #5057.
This commit is contained in:
parent
f293e1422b
commit
6442e6b5e8
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ class AutoUpdater extends EventEmitter {
|
|||
return this.emitError('Can not find Squirrel')
|
||||
}
|
||||
this.emit('checking-for-update')
|
||||
squirrelUpdate.download(this.updateURL, (error, update) => {
|
||||
squirrelUpdate.checkForUpdate(this.updateURL, (error, update) => {
|
||||
if (error != null) {
|
||||
return this.emitError(error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue