支持 App Store 送检任务按需排除 IPA 符号文件
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user