支持 App Store 送检任务按需排除 IPA 符号文件

This commit is contained in:
shenlei
2026-11-23 10:06:23 +09:00
parent d13fcfcdea
commit ab5793631c
9 changed files with 31 additions and 1 deletions
+1
View File
@@ -753,6 +753,7 @@ async def generate_config(task_id: str, task, build_dir: Path) -> dict:
"SCHEME": scheme.get("name", ""),
"OSS_FLODER": scheme.get("ossFloder", ""),
"BUILD_TYPE": task.build_type,
"EXCLUDE_SYMBOLS": bool(task.exclude_symbols),
"ENABLE_OBFUSCATION": task.obfuscation,
}
+2
View File
@@ -24,6 +24,8 @@ def _artifact_stem(config: dict) -> str:
return f"{config.get('APPID', 'app')}_{version}"
branch = re.sub(r"[^A-Za-z0-9._-]+", "_", config.get("SOURCE_BRANCH", "main")).strip("._-")
build_type = "appstore" if config.get("BUILD_TYPE") == "App_Store" else "adhoc"
if build_type == "appstore" and config.get("EXCLUDE_SYMBOLS"):
build_type += "_nosymbols"
return f"{config.get('APPID', 'app')}_{version}_{branch or 'main'}_{build_type}"
+2
View File
@@ -113,6 +113,8 @@ def _write_export_options(build_dir: Path, config: dict):
"stripSwiftSymbols": True,
"thinning": "<none>",
}
if data["method"] == "app-store-connect" and config.get("EXCLUDE_SYMBOLS"):
data["uploadSymbols"] = False
with (build_dir / "exportOptions.plist").open("wb") as f:
plistlib.dump(data, f)