diff --git a/frontend/VERSION.json b/frontend/VERSION.json index a4c57bf9..d69eeacf 100644 --- a/frontend/VERSION.json +++ b/frontend/VERSION.json @@ -1,5 +1 @@ -{ - "version": "1.8.9", - "last_build": "2026-04-13-1954", - "codename": "TypeFix" -} \ No newline at end of file +{"version": "1.9.0", "last_build": "2026-04-13-2040", "codename": "Stability", "commit": "f137ded5"} diff --git a/scripts/save_version.py b/scripts/save_version.py index 1cb025ec..1bd10e30 100644 --- a/scripts/save_version.py +++ b/scripts/save_version.py @@ -53,8 +53,15 @@ def main(): data['version'] = new_version data['last_build'] = datetime.now().strftime("%Y-%m-%d-%H%M") + # Get current git commit (short) + try: + commit_hash = run_command([git, 'rev-parse', '--short', 'HEAD']) + data['commit'] = commit_hash + except Exception: + data['commit'] = 'unknown' + # Optional: Rotate changelog if needed, but for now just update version - print(f"Incrementing version: {old_version} -> {new_version}") + print(f"Incrementing version: {old_version} -> {new_version} (commit: {data['commit']})") with open(VERSION_FILE, 'w') as f: json.dump(data, f, indent=2)