diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-11-01 23:12:28 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-11-01 23:13:27 -0300 |
commit | 79f81b77e2160fd4fb490b9e8e05636de70174bf (patch) | |
tree | e1596942656e0e6d9249e3f1921530edc40824fd /methods.py | |
parent | 93a3d1714ee9b1535ac8f902bd7b2b3135712b90 (diff) | |
download | redot-engine-79f81b77e2160fd4fb490b9e8e05636de70174bf.tar.gz |
-Modules can now add custom version info (added it for Mono)
-Version string takes this version info
-Ability to download templates from the interweb (listing does not work yet)
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/methods.py b/methods.py index b62dfc6544..2f3dac7e42 100644 --- a/methods.py +++ b/methods.py @@ -1149,7 +1149,10 @@ def build_gles3_headers(target, source, env): build_legacygl_header(str(x), include="drivers/gles3/shader_gles3.h", class_suffix="GLES3", output_attribs=True) -def update_version(): +def add_module_version_string(self,s): + self.module_version_string+="."+s + +def update_version(module_version_string=""): rev = "custom_build" @@ -1167,6 +1170,7 @@ def update_version(): 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") + f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n") import datetime f.write("#define VERSION_YEAR " + str(datetime.datetime.now().year) + "\n") f.close() |