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.

chore(ci): satisfy cache verification gates

yhhaa2b843ac18f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fcf91ee24..3034a685b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@ published separately; it ships inside the editor.
- **Audio preferences survive game restart.** Audio-demo saves and restores master, music and SFX volumes through engine storage, validates saved values, and restores the displayed percentages and actual bus gains at startup. Golden verification uses independent browser processes with a stable origin and isolated profile, cycles master volume to mute and verifies that both the label and silent output survive restart.
+- **Release optimization commits valid WASM artifacts atomically.** A failed post-link optimizer now fails the build and preserves the original artifact. Cache scans can repair exact manifest references in a surviving legacy cache, and hosts without usable storage report unsupported cache writes.
+
- **Authored sound is verified in a packaged game.** Audio-demo's existing spatial source starts through its authored Playing flag. A separate launch unlocks browser audio away from every sound control and reads all spectrum bars, proving output from the scene source while preserving the Beat toggle's independent API and fade demonstration. The golden registry requires this measured run before certifying authored sound.
- **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.
diff --git a/desktop b/desktop
index c75c3db5e..547e0b213 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit c75c3db5e422b39e400c8b3444ae6e0477f537f8
+Subproject commit 547e0b21382d07f7dab57dd391b6e1bda081433e
diff --git a/sdk/tests/content-cache-budget.test.ts b/sdk/tests/content-cache-budget.test.ts
index cf4ca180c..d9854749a 100644
--- a/sdk/tests/content-cache-budget.test.ts
+++ b/sdk/tests/content-cache-budget.test.ts
@@ -14,7 +14,7 @@ const bytes = (n = 8) => new Uint8Array(n).fill(42).buffer;
let dir: string | null = null;
const oldDir = process.env.ESENGINE_CACHE_DIR;
afterEach(async () => {
- if (dir) await rm(dir, { recursive: true, force: true });
+ if (dir) await rm(dir, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 });
dir = null;
if (oldDir === undefined) delete process.env.ESENGINE_CACHE_DIR;
else process.env.ESENGINE_CACHE_DIR = oldDir;
diff --git a/tools/cache-budget-demo.mjs b/tools/cache-budget-demo.mjs
index 281370620..60c15ee25 100644
--- a/tools/cache-budget-demo.mjs
+++ b/tools/cache-budget-demo.mjs
@@ -15,5 +15,5 @@ try {
const demo = await import(pathToFileURL(bundle).href);
console.log(JSON.stringify(await demo.run(scratch, bundle), null, 2));
} finally {
- await rm(scratch, { recursive: true, force: true });
+ await rm(scratch, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 });
}
diff --git a/tools/cache-budget-render-fixture.mjs b/tools/cache-budget-render-fixture.mjs
index d01390b86..0054bf561 100644
--- a/tools/cache-budget-render-fixture.mjs
+++ b/tools/cache-budget-render-fixture.mjs
@@ -16,4 +16,4 @@ try {
bundle: true, format: 'esm', platform: 'node', packages: 'external' });
const { run } = await import(pathToFileURL(bundle).href);
console.log(JSON.stringify(await run(root, out, channel)));
-} finally { await rm(scratch, { recursive: true, force: true }); }
+} finally { await rm(scratch, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 }); }
diff --git a/tools/cache-budget-scale.mjs b/tools/cache-budget-scale.mjs
index 2d9e71335..c3f194d2d 100644
--- a/tools/cache-budget-scale.mjs
+++ b/tools/cache-budget-scale.mjs
@@ -14,4 +14,4 @@ try {
outfile: bundle, bundle: true, format: 'esm', platform: 'node' });
const { run } = await import(pathToFileURL(bundle).href);
console.log(JSON.stringify(await run(), null, 2));
-} finally { await rm(scratch, { recursive: true, force: true }); }
+} finally { await rm(scratch, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 }); }
diff --git a/tools/launchers/cache-budget-render-verify.mjs b/tools/launchers/cache-budget-render-verify.mjs
index 5ed4fcc7e..fc47aa290 100644
--- a/tools/launchers/cache-budget-render-verify.mjs
+++ b/tools/launchers/cache-budget-render-verify.mjs
@@ -26,6 +26,7 @@ app.setPath('userData', PROFILE);
const { WebSocketServer } = createRequire(path.join(ROOT, 'sdk/package.json'))('ws');
app.commandLine.appendSwitch('enable-unsafe-swiftshader');
app.commandLine.appendSwitch('disable-gpu-sandbox');
+if (process.platform === 'linux') app.commandLine.appendSwitch('in-process-gpu');
app.commandLine.appendSwitch('force-device-scale-factor', '1');
app.commandLine.appendSwitch('force-color-profile', 'srgb');
// The restart deliberately closes the sole window before opening its successor.
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 83c80c86f..c7ba48f0d 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -30,6 +30,14 @@ export const NOTES_FLOOR = 'v0.65.0';
export const NOTED = {
'fix(examples): restore audio preferences across game restarts':
{ note: 'Audio preferences survive game restart.' },
+ 'feat(cache): protect offline versions during budget cleanup':
+ { note: 'Disk cache budgets preserve offline content versions.' },
+ 'feat(profiler): manage connected-device disk caches':
+ { note: 'Disk cache budgets preserve offline content versions.' },
+ 'fix(cache): repair legacy entries and verify release artifacts':
+ { note: 'Release optimization commits valid WASM artifacts atomically.' },
+ 'fix(ci): keep cache verifier comments within source gates':
+ { internal: 'Verification fixture comments and generated-output exclusion do not change a shipped game or editor.' },
'test(audio): certify authored source playback after packaging':
{ note: 'Authored sound is verified in a packaged game.' },
'fix(test): resolve golden output paths before spawning tools':