Calling autoUpdater.checkForUpdates() multiple times causes existing download to be wiped
See original GitHub issue"electron": "1.6.11"
"electron-builder": "^15.0.0"
"electron-updater": "^1.8.1"
(I’ve updated all the above versions after posting this issue; not sure if updating fixes it yet)
I call autoUpdater.checkForUpdates()
when the app window appears.
I noticed sometimes the Mac app doesn’t update, even after the update is downloaded (no issues in the logs). I found that after the update-downloaded
event is received, if I call autoUpdater.checkForUpdates()
again, then quit the app before the download is finished, then the auto-update will not be installed.
I think calling checkForUpdates() will begin downloading the update, even if it has already been downloaded before. Based on the observed behavior, it looks like it deletes any currently downloaded updates immediately.
Instead, I think it should delete the old update only after the new one has finished downloading.
Can you confirm this behavior?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Already fixed in the latest versions. Please upgrade.
Windows NSIS same issue
Dev Dependencies:
“electron”: “^4.2.9”, “electron-builder”: “^21.2.0”, “electron-download”: “^4.1.1”, “electron-publisher-s3”: “^20.15.0”, “electron-reload”: “1.4.0”,
Any resolutions?