fix(gui): 增强 WiFi ADB 发现和更新进度
Windows Package CI / package-fresh-install (push) Waiting to run

This commit is contained in:
Your Name committed 2026-06-29 00:15:13 +08:00
1 parent 16019ee649
commit 329b7756f4
17 files changed
+754 -85

No files matched your search

+18
View File
@@ -47,3 +47,21 @@ def test_update_delta_build_and_apply_round_trip(tmp_path):
with zipfile.ZipFile(delta) as zf:
package_manifest = json.loads(zf.read("manifest.json").decode("utf-8"))
assert package_manifest["files"] == manifest["files"]
def test_update_delta_build_many_creates_cumulative_delta_packages(tmp_path):
from tools.update_delta import create_delta_zips
old37 = tmp_path / "DouyinGuaji-3.3.7"
old38 = tmp_path / "DouyinGuaji-3.3.8"
new = tmp_path / "DouyinGuaji-3.3.9"
out = tmp_path / "delta"
for root, text in [(old37, "37"), (old38, "38"), (new, "39")]:
root.mkdir()
(root / "app.txt").write_text(text, encoding="utf-8")
manifests = create_delta_zips([old37, old38], new, out, to_version="3.3.9")
assert [item["from_version"] for item in manifests] == ["3.3.7", "3.3.8"]
assert (out / "DouyinGuaji-3.3.7_to_3.3.9_delta.zip").exists()
assert (out / "DouyinGuaji-3.3.8_to_3.3.9_delta.zip").exists()