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: Windows build failure when invoking emcmake.bat
esengine0291bf57cf1a
diff --git a/desktop/src-tauri/src/compiler.rs b/desktop/src-tauri/src/compiler.rsindex 59c680a55..86d559566 100644--- a/desktop/src-tauri/src/compiler.rs+++ b/desktop/src-tauri/src/compiler.rs@@ -1211,9 +1211,19 @@ async fn run_command_streamed(cwd: &Path,env: &HashMap<String, String>,) -> Result<(), String> {- let mut command = Command::new(cmd);+ let needs_shell = cfg!(windows) && cmd.ends_with(".bat");+ let mut command = if needs_shell {+ let mut c = Command::new("cmd.exe");+ let mut cmd_args = vec!["/C".to_string(), cmd.to_string()];+ cmd_args.extend_from_slice(args);+ c.args(&cmd_args);+ c+ } else {+ let mut c = Command::new(cmd);+ c.args(args);+ c+ };command- .args(args).current_dir(cwd).envs(env).stdout(std::process::Stdio::piped())