Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an auto updater #156

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Add an auto updater #156

merged 1 commit into from
Dec 16, 2023

Conversation

hanzi
Copy link
Collaborator

@hanzi hanzi commented Dec 16, 2023

This change adds a very crude self-update system to the bot that checks whether the most recent GitHub release is newer than the version currently running.

It only does so once a day, and only if there is no .git directory present (which would indicate that the user uses a VCS to manage the version.)

The updater can be manually triggered by running updater.py. But when using Git this might downgrade the current version, as it would just install the most recent release.

If the user allows the update (there is a confirmation prompt, of course) it will just download the release ZIP and extract it into the current directory. It will not remove any old files, though that shouldn't usually be an issue.

image

This change adds a very crude self-update system to the bot that checks whether the most recent GitHub release is newer than the version currently running.

It only does so once a day, and only if there is no `.git` directory present (which would indicate that the user uses a VCS to manage the version.)

The updater can be manually triggered by running `updater.py`. But when using Git this might _downgrade_ the current version, as it would just install the most recent release.

If the user allows the update (there is a confirmation prompt, of course) it will just download the release ZIP and extract it into the current directory. It will not remove any old files, though that shouldn't usually be an issue.
@hanzi hanzi requested a review from 40Cakes December 16, 2023 00:04
@40Cakes 40Cakes merged commit 99d9a98 into 40Cakes:main Dec 16, 2023
1 check passed
@hanzi hanzi deleted the self-update-tool branch January 7, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants