Release 3.8.2.4: unify Windows/macOS GUI on glaze HTTP host.
ci / test (macos-latest) (push) Waiting to run
ci / test (ubuntu-latest) (push) Waiting to run
ci / test (windows-latest) (push) Waiting to run

Auto-bump build number on each compile; ship versioned Windows artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
M4
2026-08-01 16:01:25 +03:00
co-authored by Cursor
parent d1570b23d3
commit 464a61aebf
26 changed files with 406 additions and 256 deletions
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env python3
"""Increment BuildNumber in update.go, then sync versioninfo / macOS bat / Android."""
from __future__ import annotations
import re
import subprocess
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
UPDATE_GO = ROOT / "internal" / "update" / "update.go"
def bump() -> int:
text = UPDATE_GO.read_text(encoding="utf-8")
m = re.search(r"const BuildNumber\s*=\s*(\d+)", text)
if not m:
raise SystemExit("cannot find BuildNumber in update.go")
n = int(m.group(1)) + 1
text2, count = re.subn(
r"const BuildNumber\s*=\s*\d+",
f"const BuildNumber = {n}",
text,
count=1,
)
if count != 1:
raise SystemExit("failed to rewrite BuildNumber")
UPDATE_GO.write_text(text2, encoding="utf-8")
print(f"BuildNumber: {m.group(1)} -> {n}", flush=True)
return n
def main() -> None:
bump()
sync = ROOT / "scripts" / "sync-version.py"
r = subprocess.run([sys.executable, str(sync)], cwd=ROOT, check=False)
if r.returncode != 0:
raise SystemExit(r.returncode)
if __name__ == "__main__":
main()