feat: initial github release version checker
Relates: #3639
This is a flawed version checker. It is based on GitHubs REST API, unauthenticated requests are rate limited to 60 requests per hour.
If for any reason the check should fail, eg. no network connection, hit rate limit, or similar, we silently fail and assume the application is up-to-date.
The check only happens once on application startup for now, in the future we can support manually checking for updates and storing the time of the last check.
For more information see: https://docs.github.com/en/rest/rate-limit/rate-limit?apiVersion=2022-11-28 https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release
Feature Preview
PR Checklist
- [x] My code adheres to AppFlowy's Conventions
- [x] I've listed at least one issue that this PR fixes in the description above.
- [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
- [x] All existing tests are passing.
Note: the reason I keep pushing this, is because I need to do some design work and it's not a high-priority.
I'll brush it up and finish it.
Use this package to allow the user to get updates automatically. https://github.com/AppFlowy-IO/AppFlowy/issues/5432
Use this package to allow the user to get updates automatically. #5432
Perfect, I'll integrate it :+1:
Use this package to allow the user to get updates automatically. #5432 Seems like Linux isn't supported for this one. I suppose we would need to implement the Linux aspect ourselves? Unless there could be a better alternative for it?