Add ARM signed updates and native release automation

This commit is contained in:
2026-11-26 17:35:26 -06:00
parent 5b2251c8f2
commit f755869a54
33 changed files with 1814 additions and 36 deletions

View File

@@ -1,2 +1,28 @@
VERSION = "v0.4.1.1_alpha"
import re
import sys
from pathlib import Path
VERSION_PATTERN = re.compile(r"v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)_(alpha|beta|rc|stable)")
CHANNELS = ("alpha", "beta", "rc", "stable")
def version_key(value):
match = VERSION_PATTERN.fullmatch(value) if isinstance(value, str) else None
if not match:
raise ValueError("Invalid application version")
numbers = tuple(map(int, match.groups()[:4]))
if max(numbers) > 65535:
raise ValueError("Application version exceeds Windows version resource limits")
return (*numbers, CHANNELS.index(match[5]))
def read_version(path):
value = Path(path).read_text(encoding="utf-8").rstrip("\n")
version_key(value)
return value
ROOT = Path(getattr(sys, "_MEIPASS", Path(__file__).resolve().parent.parent))
VERSION = read_version(ROOT / "VERSION.md")
NAME = "Adaptive Resource Monitor"