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 device boot removes each example's app when it is done - every example installs under its own id, and the nightly emulator ran out of storage two thirds of the way through

yhh798cd23d32bc
diff --git a/tools/verify-native-boot.mjs b/tools/verify-native-boot.mjs
index f2caf666c..31390f935 100644
--- a/tools/verify-native-boot.mjs
+++ b/tools/verify-native-boot.mjs
@@ -271,6 +271,9 @@ function androidDriver(opts) {
stop() {
trySh(adb, ['shell', 'am', 'force-stop', APP_ID]);
},
+ uninstall() {
+ trySh(adb, ['uninstall', APP_ID]);
+ },
// Counting colors on a SCREEN, not on the game: an emulator that pops
// "Pixel Launcher isn't responding" over a black app hands the check a
// dialog full of colors and it calls that a rendered frame.
@@ -529,6 +532,10 @@ function iosDriver(opts) {
stop() {
trySh('xcrun', ['simctl', 'terminate', udid, APP_ID]);
},
+ uninstall() {
+ trySh('xcrun', ['simctl', 'terminate', udid, APP_ID]);
+ trySh('xcrun', ['simctl', 'uninstall', udid, APP_ID]);
+ },
prepare() {},
foreground() {
const out = trySh('xcrun', ['simctl', 'spawn', udid, 'launchctl', 'list']);
@@ -893,6 +900,8 @@ for (const name of examples) {
rmSync(work, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 });
} catch (err) {
r = { ok: false, why: err.message, log: '', colors: 0, frames: 0, unjudged: null, size: '-' };
+ } finally {
+ driver.uninstall();
}
results.push({ name, ...r });
const frameNote = frameNotJudged(name) ? ' (frame not judged)'