fix: 打包副本包含 AutoPacking 脚本
This commit is contained in:
parent
cede7978e4
commit
cf6cc1d21a
@ -105,6 +105,7 @@ COPY_ITEMS = [
|
||||
"readoor.xcodeproj",
|
||||
"readoorTests",
|
||||
"Vendor",
|
||||
"AutoPacking",
|
||||
"Podfile",
|
||||
"Pods",
|
||||
"Podfile.lock",
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user