From 65cc0c7b6dcb21a287b1b3d53a98a4100d9d9fe2 Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Mon, 13 Apr 2026 20:41:10 +0300 Subject: [PATCH] =?UTF-8?q?Official=20Release=20[v1.9.0]=20(Stability=20Mi?= =?UTF-8?q?lestone=20=E2=80=A2=20Automatic=20Git=20Commit=20ID)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/VERSION.json | 6 +----- scripts/save_version.py | 9 ++++++++- 2 files changed, 9 insertions(+), 6 deletions(-) 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)