17 lines
831 B
Python
17 lines
831 B
Python
from pathlib import Path
|
|
root = Path(__file__).resolve().parent
|
|
target = root / 'release-assets-ready01/VALIDATION.md'
|
|
data = target.read_bytes()
|
|
before = b'.' + bytes([92, 92]) + b'arcadia-server.exe --bind'
|
|
after = b'.' + bytes([92]) + b'arcadia-server.exe --bind'
|
|
assert data.count(before) == 1
|
|
target.write_bytes(data.replace(before, after))
|
|
for name in ['prepare-release-assets.py', 'prepare-release-assets-ready01.py']:
|
|
path = root / name
|
|
data = path.read_bytes()
|
|
before = b'.' + bytes([92]) * 4 + b'arcadia-server.exe --bind'
|
|
after = b'.' + bytes([92]) * 2 + b'arcadia-server.exe --bind'
|
|
assert data.count(before) == 1
|
|
path.write_bytes(data.replace(before, after))
|
|
print('Corrected only native backend command separator in local pre-upload validation and its preparers. Archive/checksum unchanged.')
|