Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65cc0c7b6d |
@@ -1,5 +1 @@
|
||||
{
|
||||
"version": "1.8.9",
|
||||
"last_build": "2026-04-13-1954",
|
||||
"codename": "TypeFix"
|
||||
}
|
||||
{"version": "1.9.0", "last_build": "2026-04-13-2040", "codename": "Stability", "commit": "f137ded5"}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user