besteon / Ironmon-Tracker

A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
MIT License
129 stars 45 forks source link

Feature: Version Update Checking #238

Closed UTDZac closed 2 years ago

UTDZac commented 2 years ago

This adds support for the Tracker to check this repository for release updates. It does so by comparing major, minor, and patch version numbers. As such, the version schema moving forward will be [Major].[Minor].[Patch] , eg 6.3.0

image

When a new release goes out, if the Major or Minor patch number changes, then the user will be alerted that an update is available. This means that we can push hotfix updates regularly using the Patch number, without continuing to alert everyone about updates.

This feature offers a Remind me later option if the user wants to be reminded later to update. I think one possible flaw with this is using the Quick-load feature will likely trigger the version update reminder, every time. Unsure if there is a good way to go about this to differentiate between reloading the script from a quick-load and reloading the script on a different day.

UTDZac commented 2 years ago

Two updates here:

UTDZac commented 2 years ago

Just leaving a note that one use-case here that's hard to test live, but I think I thought it through correctly, is the following:

  1. User currently on v6.3.0 is notified of a new release: v6.4.0
  2. User dismisses the version update and purposefully does not update
  3. Sometime in the future a new release yet again comes out: v6.5.0
  4. At this point, the user should again be notified about a new version update