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(build-tools): --debug builds a debug engine; --release, always on, overrode it

yhh828eea97ccd0
diff --git a/build-tools/cli.js b/build-tools/cli.js
index 63cf37dc7..f3d430aca 100644
--- a/build-tools/cli.js
+++ b/build-tools/cli.js
@@ -30,7 +30,6 @@ program
.description('Build ESEngine')
.option('-t, --target <target>', 'Build target (web, wechat, wechat-lite, spine, spine21, spine38, spine41, spine43, dragonbones, physics, physics-wechat, spine-wechat, dragonbones-wechat, basis, basis-wechat, sdk, all)', 'web')
.option('-d, --debug', 'Debug build', false)
- .option('-r, --release', 'Release build (default)', true)
.option('-c, --clean', 'Clean before build', false)
.option('--no-cache', 'Disable EHT cache')
.option('-v, --verbose', 'Verbose output', false)
@@ -50,7 +49,7 @@ program
process.exit(1);
}
- const isDebug = options.debug && !options.release;
+ const isDebug = options.debug;
// Every module the config declares, rather than a second list of them.
const targets = options.target === 'all'
? Object.keys(config.wasm)