This repository has been archived by the owner on Apr 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Update dialog
Stekeblad edited this page May 2, 2020
·
1 revision
The update dialog opens when you click on the check for updates button in the settings window or if you click yes in the popup thats informs about a new update and asks if you want to download it.
It reports progress on every step in the update progress, from reading the current version of the program to scheduling the last update step on program exit.
The steps between include:
- Retrieving information on the latest available version from stekeblad.se.
- Comparing the latest version with the current version.
- If the updater is not running in the background and silent updates has been enabled then the update available popup is shown. If you click yes then the updater continues to the next step.
- Downloading the latest version pointed out by the update check (currently all releases is on GitHub).
- Verifying that the update was created by Stekeblad by using cryptography to compare the downloaded file with the digital signature returned from the update check and a public key included in the program. Only if the signature matches and it was created by Stekeblads corresponding private key will the updater save the file and prepare to update.