build: stage immutable release files without duplicate copies
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user