Only use --noconsole on Windows, macOS/Linux need stdout for Tauri logs

This commit is contained in:
Jamie Pine
2026-03-15 12:07:35 -07:00
parent 04316f7adc
commit 9d79ea367a
+5 -1
View File
@@ -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():