Add auto-update download and install functionality #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduces a function to download the latest .exe release from GitHub, prepare an updater script, and trigger an update on application exit. The update popup now offers a 'Download and Install' button, streamlining the update process for users by automating download, replacement, and restart of the application.
This pull request adds an automated update and installation feature to the application, allowing users to download and install new versions directly from within the app. The update process now downloads the latest executable, prepares a Windows batch script to handle the replacement and restart, and informs users that the app will restart to apply the update.
Automated update and installation process:
download_and_updateto handle downloading the latest.exefrom GitHub releases, saving it, and preparing an updater batch script that replaces the current executable and restarts the application upon exit. This function also provides user feedback on success or failure.Dependency and import updates:
sysmodule to support locating the current executable and managing file paths for the update process.