Files
workinf_Blender_Wasm/my-tools/wbv2_runtime_contract.py
mes123456 f3e21c6b98
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

22 lines
1.3 KiB
Python

"""Bind the known source build to local runtime publication, including hashes."""
def bind_runtime_publication(result):
matched = False
for check in result["checks"]:
argv = check["argv"]
if "source_build" in check["kinds"] and "cmake" in argv and "build_web_blender6" in argv and "web_engine" in argv:
check["argv"] = ["python3", "my-tools/build_local_webengine.py"]
check["cwd"] = "."
matched = True
if matched:
result["dependencies"] = sorted(set(result["dependencies"] + ["my-tools/build_local_webengine.py", "tools/web/sync-web-engine-runtime.mjs"]))
result["artifacts"] = sorted(set(result["artifacts"] + ["web/app/public/wasm-module-manifest.json", "web/app/public/vendor/blender/web_engine.js", "web/app/src/vendor/blender/web_engine.js", "web/app/src/vendor/blender/web_engine.wasm"]))
if ("web/app/src/app/App.tsx" in result.get("dependencies", [])
and any("chromium" in check.get("kinds", []) for check in result.get("checks", []))):
dependencies = set(result.get("dependencies", []))
dependencies.update(("my-tools/wbv2_runtime_contract.py",
"web/app/src/three-adapter/viewport.ts"))
result["dependencies"] = sorted(dependencies)
return result