all non main releases

all non main releases will be marked as a pre release so we can build releases that do not get sent out as an update notification to everyone just yet
This commit is contained in:
Golumpa 2026-06-23 15:46:37 +01:00
parent 2188e62d4b
commit fe3eb986de
3 changed files with 34 additions and 10 deletions

View file

@ -29,6 +29,9 @@ def check_for_update(current_version: str, *, timeout: float = 1.5) -> UpdateInf
except Exception:
return None
if latest.get("prerelease"):
return None
latest_version = str(latest.get("tag_name", "")).strip()
release_url = str(latest.get("html_url", "")).strip() or RELEASES_URL
if not latest_version or not is_newer_version(latest_version, current_version):