mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix setting FileVersion and ProductVersion fields in resource file
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user