Simple system for managing launcher version compatibility via a GitHub repository.
- Check if version is in
supportedlist --> ✅ Allow, no force update - Check if version is in
deprecatedlist --> ✅ Allow, just show a warning - Version not found anywhere OR below
minimumRequired--> ❌ Force update
| Pattern | Matches |
|---|---|
2.2.0 |
Exact version |
2.2.* |
All 2.2.x versions |
^2.1.0 |
>=2.1.0 <3.0.0 |
~2.1.0 |
>=2.1.0 <2.2.0 |
>=2.0.0 |
All versions >= 2.0.0 |
- API fetches
versions.jsonfrom this repo - Results are cached for 1 hour
- When someone pushes changes, GitHub Actions calls the refresh endpoint
- Cache clears immediately, next request gets fresh data