Skip to content

Commit

Permalink
Fixed version sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Molanda committed Jul 14, 2021
1 parent 6019e6b commit 8164ba7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file modified BrowserProxy/BrowserProxy.rc
Binary file not shown.
Binary file modified FlashProxy/FlashProxy.rc
Binary file not shown.
9 changes: 9 additions & 0 deletions SyncVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ def apply_version_rc(name, version):
','.join(version.split('.') + ['0']),
)
lines[i] = line

match = re.match(r'^( +)VALUE "([A-Za-z]+)Version",', line)
if match is not None:
line = '%sVALUE "%sVersion", "%s.0"' % (
match.group(1),
match.group(2),
version,
)
lines[i] = line
with open('%s/%s.rc' % (name, name), 'w', encoding='utf-16') as file:
file.write('\n'.join(lines) + '\n')

Expand Down

0 comments on commit 8164ba7

Please sign in to comment.