Make windows build scripts read file for version number
This commit is contained in:
@@ -8,10 +8,15 @@ import subprocess
|
|||||||
import shutil
|
import shutil
|
||||||
import distutils.dir_util
|
import distutils.dir_util
|
||||||
|
|
||||||
|
def get_version_string():
|
||||||
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
with open(dir_path + "/../compile_version_string.txt", "r") as file:
|
||||||
|
contents = file.readline()
|
||||||
|
return contents
|
||||||
|
|
||||||
|
|
||||||
#Const globals
|
#Const globals
|
||||||
#Version string must be bumped every release.
|
VERSION_STRING = get_version_string()
|
||||||
#TODO: See developer documentation.
|
|
||||||
VERSION_STRING = "3-1-0-dev"
|
|
||||||
|
|
||||||
EXIT_CODE_SUCCESS = 0
|
EXIT_CODE_SUCCESS = 0
|
||||||
EXIT_CODE_FAILURE_BUILD_APP = 1
|
EXIT_CODE_FAILURE_BUILD_APP = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user