Skip to content

The open-source AI voice studio. Clone, dictate, create.

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

Jamie Pine9d79ea367a88
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():