momentum-mod / lumper

BSP lump editor and review tool
MIT License
19 stars 12 forks source link

Automatic Updates #42

Open Gocnak opened 1 week ago

Gocnak commented 1 week ago

Lumper should be able to detect a new version on GitHub and link to downloading the new release for users. The version could be parsed via the source files on GitHub, or we can use the github API to check the releases page for latest and see if the tag version matches the currently deployed one.

Long term it would be great for Lumper to auto download the new version and restart using it.

tsa96 commented 1 week ago

Yeah, just pinging github API should work fine.

Probably most appropriate in a dedicated service, like BspService and PageService. You can access the Main Window via Program.Desktop and display a MsBox.Avalonia message box if out of date.

I started using HttpClient in my commit yesterday, be sure to use that, not the old WebClient thing.

tsa96 commented 1 week ago

Assuming we're not actually any kind of installer and just linking the page, this is a relatively small issue, only real work is figuring out the github API endpoint, probably like 100 LOC tops.

tsa96 commented 1 week ago

On mobile which doesn't seem to support adding new labels, but this is a Good First Issue!