feat: 接入 iOSGuard LLVM 混淆工具链与 IPA 加固门禁,按分支策略兼容旧版本打包
- 新增 toolchain_manager:构建前自愈校验 LLVM opt 工具链,按 Xcode 版本与渠道隔离 obj_cache - readoor31/readoor31OtherPay Archive 透传 IG_DIST_CHANNEL/IG_OBF_MODE/IG_ALL_GUARD_OFF/IG_RELEASE_SEED - Archive 前核对分发渠道编译条件:上架包缺失 IG_APPSTORE_DISTRIBUTION 即阻断,非上架包带该条件仅告警,未接入 anti_tamper 的分支跳过 - 导出后执行 IPA 加固门禁审计,失败阻断上传;持久化 dSYM、混淆映射、诊断事件码与审计报告 - 混淆是否执行改由分支 AutoPacking/build_policy.json 声明:force_obfuscation=true 强制,否则按任务勾选,兼容旧分支/旧 Tag;恢复打包页混淆勾选框 - 分支未自带混淆脚本时回退服务端脚本并告警;同步更新服务端 L1 混淆脚本 - .gitignore 忽略 iosguard_cache 与 artifacts 运行时目录;README 补充分支打包策略说明
This commit is contained in:
@@ -114,6 +114,13 @@ def get_definition(project_id: str, project: dict) -> dict:
|
||||
"""取项目定义,缺失字段用缺省值补齐(只读,不写回配置)。"""
|
||||
defaults = default_definition(project_id)
|
||||
definition = {key: project.get(key, defaults[key]) for key in DEFINITION_KEYS}
|
||||
definition["copy_items"] = list(definition.get("copy_items") or [])
|
||||
if (
|
||||
(project_id == LEGACY_PROJECT_ID or definition.get("patcher") == PATCHER_READOOR)
|
||||
and definition["copy_items"]
|
||||
and "iOSGuardIntegration" not in definition["copy_items"]
|
||||
):
|
||||
definition["copy_items"].append("iOSGuardIntegration")
|
||||
definition["git"] = {**defaults["git"], **(definition.get("git") or {})}
|
||||
definition["xcode"] = {**defaults["xcode"], **(definition.get("xcode") or {})}
|
||||
definition["dingtalk_at"] = {**defaults["dingtalk_at"], **(definition.get("dingtalk_at") or {})}
|
||||
|
||||
Reference in New Issue
Block a user