From 9d79ea367a8896e376c08063968172ebb828e61b Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Sun, 15 Mar 2026 12:07:35 -0700 Subject: [PATCH] Only use --noconsole on Windows, macOS/Linux need stdout for Tauri logs --- backend/build_binary.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/build_binary.py b/backend/build_binary.py index 12104d09..c291c10f 100644 --- a/backend/build_binary.py +++ b/backend/build_binary.py @@ -34,10 +34,14 @@ def build_server(cuda=False): args = [ 'server.py', # Use server.py as entry point instead of main.py '--onefile', - '--noconsole', # No visible console window on Windows '--name', binary_name, ] + # Hide console window on Windows only. On macOS/Linux the sidecar needs + # stdout/stderr for Tauri to capture logs. + if platform.system() == "Windows": + args.append('--noconsole') + # Add local qwen_tts path if specified (for editable installs) qwen_tts_path = os.getenv('QWEN_TTS_PATH') if qwen_tts_path and Path(qwen_tts_path).exists():