fix: 使用固定便携包清单名称 (#102)

This commit is contained in:
chengma
2026-08-10 15:10:03 +08:00
parent 870c95a79d
commit 4dbe519029
7 changed files with 13 additions and 11 deletions
+2 -1
View File
@@ -145,7 +145,7 @@ class ReleaseManifestTest(unittest.TestCase):
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)
update_zip = root / "CMAutoBuy_0.1.0.zip"
portable_zip = root / "自动采集采购工具_0.1.0.zip"
portable_zip = root / "自动采集采购工具.zip"
update_zip.write_bytes(b"update")
portable_zip.write_bytes(b"portable")
output = root / MANIFEST_FILE_NAME
@@ -160,6 +160,7 @@ class ReleaseManifestTest(unittest.TestCase):
manifest["update"]["sha256"],
hashlib.sha256(b"update").hexdigest(),
)
self.assertEqual(manifest["update"]["file"], "CMAutoBuy_0.1.0.zip")
self.assertEqual(manifest["portable"]["file"], portable_zip.name)
def test_versioned_manifest_name_is_stable_and_validated(self):