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')
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user