build: stage immutable release files without duplicate copies
Core regression / Python core and release configuration (push) Successful in 18s
Core regression / JavaScript syntax (push) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-04 15:47:21 +08:00
1 parent 5aeddacfc9
commit 1340f6c233
3 files changed
+19 -2

No files matched your search

@@ -57,9 +57,13 @@ def test_actual_sfx_and_zip_extract_identical_unicode_and_empty_files(tmp_path):
(source / '中文 目录').mkdir()
(source / '中文 目录' / '空.txt').write_bytes(b'')
(source / '中文 目录' / 'file.bin').write_bytes(bytes(range(256)) * 2048)
(source / 'licenses').mkdir()
original_license=source/'licenses'/'7-Zip-LICENSE.txt'
original_license.write_text('original input must remain unchanged')
output = tmp_path / 'release'
manifest = build_release(source, output, version='1.2.2', seven_zip=tools/'7z.exe',
sfx_stub=tools/'7z.sfx', license_path=tools/'License.txt')
assert original_license.read_text() == 'original input must remain unchanged'
destination = tmp_path / '解压 结果'
result = verify(output/'release-manifest-1.2.2.json', destination)
assert result['passed'] and result['files'] == 4