From cf6cc1d21acfc04d7b97910f91eefe18e0610730 Mon Sep 17 00:00:00 2001 From: shenlei Date: Mon, 20 Jul 2026 15:03:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=8C=85=E5=89=AF=E6=9C=AC?= =?UTF-8?q?=E5=8C=85=E5=90=AB=20AutoPacking=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/config.py | 1 + tests/test_build_service.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/config.py b/backend/config.py index 1fbaa52..85b33ff 100644 --- a/backend/config.py +++ b/backend/config.py @@ -105,6 +105,7 @@ COPY_ITEMS = [ "readoor.xcodeproj", "readoorTests", "Vendor", + "AutoPacking", "Podfile", "Pods", "Podfile.lock", diff --git a/tests/test_build_service.py b/tests/test_build_service.py index 6857a25..8f39914 100644 --- a/tests/test_build_service.py +++ b/tests/test_build_service.py @@ -41,7 +41,9 @@ def tmp_dirs(tmp_path): (source_dir / "Pods").mkdir() (source_dir / "Podfile.lock").write_text("PODFILE CHECKSUM: abc") (source_dir / "readoor.xcworkspace").mkdir() - (source_dir / "AutoPacking").mkdir() + whitelist_script = source_dir / "AutoPacking" / "obfuscation" / "generate_image_whitelist.py" + whitelist_script.parent.mkdir(parents=True) + whitelist_script.write_text("# whitelist generator") vendor_dir = source_dir / "Vendor" / "RDEpubReaderView" vendor_dir.mkdir(parents=True) (vendor_dir / "RDEpubReaderView.podspec").write_text("Pod::Spec.new do |s| end") @@ -161,7 +163,7 @@ async def test_copy_source_code(tmp_dirs, log_streamer): assert (result / "Podfile.lock").exists() assert (result / "readoor.xcworkspace").exists() assert (result / "Vendor" / "RDEpubReaderView" / "RDEpubReaderView.podspec").exists() - assert not (result / "AutoPacking").exists() + assert (result / "AutoPacking" / "obfuscation" / "generate_image_whitelist.py").exists() async def test_copy_source_code_normalizes_lowercase_podfile(tmp_dirs, log_streamer):