I am using electron-builder
and electron-updater
way to update my application.
Scenario:
My application checks for update within a minute when it starts. After that, it checks for update every 5 hours. I am not forcing my users to install the application when a new update is downloaded. Instead Installing of updated app will start at the time of app quit. I am just showing them that "a new update is available" with "Install now" button so that they can update it if they want ( using quitAndInstall
) or when they quit app or during next start.
Now below are some queries related to electron-updater.
I notice that build downloads every time. Let's say if an update is available then downloading of new update will start in a minute when an app opens. Now a new app is not installed so after 5 hours it will again check for new update. Versions will be mismatched and so it starts downloading updates again even if it has downloaded already. Is this a default behavior or I am missing something? How can I stop this happening? It uses and affects both my Client's Data and My AWS bandwidth!
When an update is downloaded. After user updates the app, it's installer is still available and not removed. (Ex:- running on version 1.0.0, an update of 2.0.0 is available and downloaded, triggered
quitAndInstall
and updated the app. The installer-2.0.0.exe is still there after installation). Is this a default behavior? Does it(or windows) remove this downloaded files after some days?
I have searched regarding this thing but no luck till now!! Below are some version details.
electron : 2.0.2
, electron-builder : 20.15.1
and electron-updater : 2.21.10