Fix setting FileVersion and ProductVersion fields in resource file

This commit is contained in:
Oliver Hamlet
2018-10-06 17:44:30 +01:00
parent 47797cc0d1
commit 999a17a7cf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ def update_resource_file(path, version):
comma_separated_version = version.replace('.', ', ')
replace_in_file(path, 'VERSION \d+, \d+, \d+', 'VERSION {}'.format(comma_separated_version))
replace_in_file(path, 'Version", "\d+\.\d+\.\d+"', 'VERSION ", "{}"'.format(version))
replace_in_file(path, 'Version", "\d+\.\d+\.\d+"', 'Version", "{}"'.format(version))
if __name__ == "__main__":
parser = argparse.ArgumentParser(description = 'Set the LOOT API version number')
+2 -2
View File
@@ -11,9 +11,9 @@ BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileVERSION ", "0.11.0"
VALUE "FileVersion", "0.13.8"
VALUE "LegalCopyright", "Copyright (C) 2013-2016 WrinklyNinja"
VALUE "ProductVERSION ", "0.11.0"
VALUE "ProductVersion", "0.13.8"
END
END
BLOCK "VarFileInfo"