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(test): resolve golden output paths before spawning tools

yhh359729b03eee
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65869aa19..b2e35aadd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,8 @@ published separately; it ships inside the editor.
### Fixed
+- **Package verification resolves output folders consistently.** Relative work and screenshot paths are resolved before child tools launch, so the editor and package runners write into the same requested folder instead of resolving paths against their own working directories.
+
- **Finite native tween loops hand off their sequences.** Restart and ping-pong loops now resume a paused successor when their finite count completes, just like non-looping tweens. Completion leaves cancelled successors cancelled instead of reviving them and writing their target for another frame.
- **Looping tweens preserve long-frame remainder.** JS value tweens and native property tweens skip completed cycles arithmetically, retain the current phase and ping-pong direction, and complete finite counts at their final endpoint. Exact cycle boundaries keep their endpoint behavior; delay remainder is preserved and very large frame sums are bounded instead of overflowing elapsed time.
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 81c5654b9..8e21d99ab 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';
* the reader recognises anyway.
*/
export const NOTED = {
+ 'fix(test): resolve golden output paths before spawning tools':
+ { note: 'Package verification resolves output folders consistently.' },
'fix(animation): hand off completed native tween loops':
{ note: 'Finite native tween loops hand off their sequences.' },
'fix(animation): preserve looping tween phase across long frames':
diff --git a/tools/verify-golden.mjs b/tools/verify-golden.mjs
index 52b22c379..15b811a3e 100644
--- a/tools/verify-golden.mjs
+++ b/tools/verify-golden.mjs
@@ -39,8 +39,9 @@ const flag = (n, d) => {
const TIER = flag('tier', 'pr');
const ONLY = flag('only', '');
-const SHOTS = flag('shots', '');
-const WORK = flag('work', path.join(ROOT, '.golden'));
+const shotsArg = flag('shots', '');
+const SHOTS = shotsArg ? path.resolve(shotsArg) : '';
+const WORK = path.resolve(flag('work', path.join(ROOT, '.golden')));
const NO_PARITY = argv.includes('--no-parity');
/** Targets this runner owns; the rest belong to the native/desktop verifiers.
* A mini-game needs its vendor's globals, so it goes through its own launcher. */