Raytwo/ARCropolis

[Qualify of Life] Fetch the changelog from the Github release and display it on update prompt

Closed this issue · 0 comments

Explain the improvement(s).

We currently have to write two changelogs when making a release:

  • The one on github
  • changelog.toml on the SD card

They are essentially the exact same, if not for changelog.toml being a TOML file and Github being Markdown text.
When looking for an update using Github's REST API, it is possible to fetch the changelog of a release in Markdown format, as well as converting it to HTML through a second API call.

This makes it possible to generate the changelog page on the fly provided we store the resulting HTML or pre-generate the page after downloading the update.

This however sounds a bit tedious, so we could eventually generate the changelog when checking if the update exists and display it to the user, offering them to update or not directly from it.

Eventually, a "Do not ask again for this release" checkbox could also be added.

Provide extra details

Get the release list
Markdown to HTML