mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
Only use --noconsole on Windows, macOS/Linux need stdout for Tauri logs
This commit is contained in:
@@ -34,10 +34,14 @@ def build_server(cuda=False):
|
|||||||
args = [
|
args = [
|
||||||
'server.py', # Use server.py as entry point instead of main.py
|
'server.py', # Use server.py as entry point instead of main.py
|
||||||
'--onefile',
|
'--onefile',
|
||||||
'--noconsole', # No visible console window on Windows
|
|
||||||
'--name', binary_name,
|
'--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)
|
# Add local qwen_tts path if specified (for editable installs)
|
||||||
qwen_tts_path = os.getenv('QWEN_TTS_PATH')
|
qwen_tts_path = os.getenv('QWEN_TTS_PATH')
|
||||||
if qwen_tts_path and Path(qwen_tts_path).exists():
|
if qwen_tts_path and Path(qwen_tts_path).exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user