dev channel: Apache serves /desktop/dev/latest.json; the VDS publisher lists releases without the draft filter (it hid the dev drafts)

This commit is contained in:
CRTkafa 2026-10-23 23:46:03 +08:00
parent 9947ea1639
commit 29a9683ab7
2 changed files with 3 additions and 2 deletions

View file

@ -154,7 +154,7 @@ def main():
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except BlockingIOError:
return
rels = get(f"{FORGEJO}/api/v1/repos/{REPO}/releases?draft=true&limit=50")
rels = get(f"{FORGEJO}/api/v1/repos/{REPO}/releases?limit=50")
cands = [(r, r["tag_name"][4:]) for r in rels if r["tag_name"].startswith("dev-") and key(r["tag_name"][4:])]
if not cands:
return