Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Add update notifier #125

Merged
merged 2 commits into from
Apr 8, 2023
Merged

Add update notifier #125

merged 2 commits into from
Apr 8, 2023

Conversation

akshualy
Copy link
Collaborator

@akshualy akshualy commented Apr 8, 2023

Description

This PR addresses "Version detection" of #124. It makes more sense to keep the config versioning separate from the project versioning, so we do not update the config for updates that do not edit it.

Implements a version update notifier by sending an API request to this repository's latest release, comparing the tag with the string in the VERSION file. The comparison ignores everything in the semantic version after the patch segment (position 3).

When a new version is detected, the user will be notified on start-up through a pop-up detailing their and the repository's version. They may download it (the button opens the release page in their default browser) or ignore it.

I decided to implement this first since it seems that we have had quite a few releases recently :)

Notes

Usually, you would add a checkbox denoting an option to ignore the update until the following remote version change. However, this is not possible with the limited GUI scope we have at the moment. I might be wrong, though, so feel free to point it out if you know if it is possible off the top of your head!

Out-of-scope commit that marks the executable to be run as administrator. This prevents the obligatory "Have you tried running as administrator?" question if someone opens an issue.

Copy link
Owner

@Kyrluckechuck Kyrluckechuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🔥

@Kyrluckechuck Kyrluckechuck merged commit 58f11f2 into main Apr 8, 2023
@Kyrluckechuck Kyrluckechuck deleted the Add-Update-Notifier branch April 8, 2023 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants