Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(gates): the staleness guard checks the binary the run will serve

yhhf59a860aa0d4
diff --git a/tools/verify-render.mjs b/tools/verify-render.mjs
index fe0954904..b7bab9dda 100644
--- a/tools/verify-render.mjs
+++ b/tools/verify-render.mjs
@@ -88,7 +88,10 @@ const scenes = selected.map((s) => ({
}
: s.env,
}));
-requireCurrentEngine(ROOT, path.join(DESKTOP, 'public', 'wasm'));
+// The copy this run will actually serve: --no-build leaves desktop/dist as it
+// stands, so a freshly built public/ one it never copies is evidence about a
+// binary no scene below is judging.
+requireCurrentEngine(ROOT, path.join(DESKTOP, NO_BUILD ? 'dist' : 'public', 'wasm'));
console.log(`render ${only ? `${scenes.length} named scene(s)` : `${TIER}: ${scenes.length} scene(s)`} on ${BACKEND}`);
if (!NO_BUILD) {