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')