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(gates): the boot log is read, not catted through a one-megabyte buffer
esengine1d08f20630ae
diff --git a/tools/verify-native-boot.mjs b/tools/verify-native-boot.mjsindex 43802fb76..305b6b42f 100644--- a/tools/verify-native-boot.mjs+++ b/tools/verify-native-boot.mjs@@ -42,7 +42,7 @@* not have a simulator, and says so in the output when it takes that door.*/import { execFileSync, spawnSync } from 'node:child_process';-import { appendFileSync, existsSync, mkdirSync, readdirSync, rmSync, writeFileSync } from 'node:fs';+import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';import path from 'node:path';import { fileURLToPath } from 'node:url';import { decodePng, distinctColors } from '../build-tools/utils/png.js';@@ -505,7 +505,9 @@ function iosDriver(opts) {const container = trySh('xcrun', ['simctl', 'get_app_container', udid, APP_ID, 'data']);if (container.status !== 0) return '';const file = path.join(container.stdout.trim(), 'Documents', LOG_NAME);- return existsSync(file) ? sh('cat', [file]) : '';+ // Read, not `cat`: execFileSync buffers a megabyte and the flagship's+ // boot log is bigger, so the shard died on ENOBUFS instead of judging.+ return existsSync(file) ? readFileSync(file, 'utf8') : '';},screenshot() {const shot = path.join(opts.out, 'raw.png');