Since we usually have 2 sets of firmware (stable and development), this would need to check based on certain conditions. Sometimes we only have a stable version too.
So it should check the latest stable and development releases. It should also check what the user is currently running and do something like this logic:
- If the user is running a development release (e.g. 10.0.0-alpha1):
- If a higher stable release 10.0.0 is available, suggest that.
- If a higher dev release (e.g. 10.0.0-beta1 is available) suggest that.
- If the user is running a stable release (e.g. 9.2.8):
- If a higher stable release (e.g. 9.2.9), suggest that AND
- If a higher dev release (e.g. 10.0.0-beta1) also suggest that
This would need to be able to turn a version number into something numerical that could be compared.
Since we usually have 2 sets of firmware (stable and development), this would need to check based on certain conditions. Sometimes we only have a stable version too.
So it should check the latest stable and development releases. It should also check what the user is currently running and do something like this logic:
This would need to be able to turn a version number into something numerical that could be compared.