1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add support for patch versions (2.0.x)

(cherry picked from commit 706d576f7b)
This commit is contained in:
Rémi Verschelde
2016-03-06 19:05:27 +01:00
parent e8ee4f7973
commit 81b449908e
3 changed files with 6 additions and 3 deletions

View File

@@ -1096,6 +1096,8 @@ def update_version():
f.write("#define VERSION_NAME "+str(version.name)+"\n")
f.write("#define VERSION_MAJOR "+str(version.major)+"\n")
f.write("#define VERSION_MINOR "+str(version.minor)+"\n")
if (hasattr(version, 'patch')):
f.write("#define VERSION_PATCH "+str(version.patch)+"\n")
f.write("#define VERSION_REVISION "+str(rev)+"\n")
f.write("#define VERSION_STATUS "+str(version.status)+"\n")
import datetime