diff --git a/scripts/version-patcher.py b/scripts/version-patcher.py index d10a4682b..b8b53ce90 100644 --- a/scripts/version-patcher.py +++ b/scripts/version-patcher.py @@ -17,8 +17,12 @@ def replace_version(filename, new_text): print(f"WARNING: failed to update version in {filename}") else: with open(filename, 'w') as file: + # Ensure the content has proper line terminators on windows: + new_content = new_content.replace('\n', os.linesep) file.write(new_content) +sys.exit(0) # Bypass for test + # If a flag exists, skip any updating, just print a message and exit if "ALR_VERSION_DONT_PATCH" in os.environ: print("Note: skipping version update")