Write release checksums as exact LF bytes on Windows

This commit is contained in:
SAPHID committed 2026-10-25 01:07:38 +00:00
1 parent 630cdd7b34
commit f6ecf9b1f4
1 file changed
+3 -1
+3 -1
View File
@@ -59,7 +59,9 @@ def main():
if args.id:
print(int(release["id"]))
else:
sys.stdout.write(checksums(release))
# Windows text stdout changes LF to CRLF. SHA256SUMS must have the same
# bytes on every runner, including publish-release.sh's verification.
sys.stdout.buffer.write(checksums(release).encode("ascii"))
if __name__ == "__main__":