bind legacy patcher sentinel to expected value

This commit is contained in:
chatgpt-final-release-writer
2026-08-05 13:15:34 +08:00
parent a7e258d306
commit d9ce0610b3
+1 -1
View File
@@ -63,7 +63,7 @@ def add_file(archive:tarfile.TarFile,source:Path,name:str)->None:
def build_release(repository:Path,output:Path)->dict:
stats={"excluded_entry_count":0,"copied_entry_count":0}
with tempfile.TemporaryDirectory(prefix="aios-v2r1c5-build.") as temporary:
staging=Path(temporary); (staging/".aios-v2r1c5-isolated-root").write_text("V2R1C5\n",encoding="utf-8"); (staging/".aios-v2r1c4-isolated-root").write_text("V2R1C5\n",encoding="utf-8")
staging=Path(temporary); (staging/".aios-v2r1c5-isolated-root").write_text("V2R1C5\n",encoding="utf-8"); (staging/".aios-v2r1c4-isolated-root").write_text("V2R1C4\n",encoding="utf-8")
for rel in ("active-runtime","deploy/aios-v2","plugins/aios-tenant-boundary","fixes","tools"): copy_tree(repository/rel,staging/rel,stats)
copy_tree(OPENCLAW_SOURCE,staging/"openclaw",stats); copy_tree(WEIXIN_SOURCE,staging/"vendor"/"openclaw-weixin",stats)
patcher=load_patcher(repository); first=patcher.apply(staging/"vendor"/"openclaw-weixin",isolation_root=staging); second=patcher.apply(staging/"vendor"/"openclaw-weixin",isolation_root=staging)