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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(tools): a generated header is not source the engine build is behind
yhhfac44e596f0b
diff --git a/tools/lib/engineBuild.mjs b/tools/lib/engineBuild.mjsindex b00c80528..5adc68bd5 100644--- a/tools/lib/engineBuild.mjs+++ b/tools/lib/engineBuild.mjs@@ -22,6 +22,9 @@ function newestSource(root) {for (const entry of readdirSync(dir, { withFileTypes: true })) {const full = path.join(dir, entry.name);if (entry.isDirectory()) { walk(full); continue; }+ // A generated header is an output of the build, not an input to it: its+ // mtime says when the build last ran, which would make every build stale.+ if (entry.name.includes('.generated.')) continue;if (!/\.(c|cc|cpp|h|hpp|inl|esshader|wgsl)$/.test(entry.name)) continue;const at = statSync(full).mtimeMs;if (at > newest.at) newest = { at, file: path.relative(root, full).split(path.sep).join('/') };