Make NSIS and Win build scripts remove " character
It is not strictly necessary in the Python version because it's being appended to a batch command, but in order to have things make sense if the mechanism of dispatching commands changes the program will strip double quotes.
This commit is contained in:
@@ -12,7 +12,7 @@ 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
|
||||
return contents.strip('"')
|
||||
|
||||
|
||||
#Const globals
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
!define THIRDDIR "..\third-party"
|
||||
!define PACKAGEDIR "..\src\package_files"
|
||||
!define PROJECTDIR "..\"
|
||||
!define /file VERSION_STRING "..\build_scripts\compile_version_string.txt"
|
||||
!define /file VERSION_STRING_QUOTES "..\build_scripts\compile_version_string.txt"
|
||||
!searchreplace VERSION_STRING ${VERSION_STRING_QUOTES} "$\"" ""
|
||||
|
||||
|
||||
;Installer icon
|
||||
|
||||
Reference in New Issue
Block a user