From 61d344a3d35ecead8cb4326566d4c35551199816 Mon Sep 17 00:00:00 2001 From: Mazonia Date: Tue, 6 Oct 2026 17:08:03 +0000 Subject: [PATCH] feat: configure dedicated xau-trader.exe process name and Task Manager title --- .gitignore | 2 ++ run.bat | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7db2d18..dd3ddc3 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ eggs/ venv/ env/ .venv/ +*.exe + # AI Models (large files) ai/models/*.h5 diff --git a/run.bat b/run.bat index 81459b6..aae62e9 100644 --- a/run.bat +++ b/run.bat @@ -4,9 +4,19 @@ set PYTHONUTF8=1 set PYTHONIOENCODING=utf-8 set HF_HUB_DISABLE_SYMLINKS_WARNING=1 cd /d "%~dp0" +title XAUUSD-AI-Trader set VENV_PY=%~dp0.venv\Scripts\python.exe if exist "%VENV_PY%" ( - "%VENV_PY%" "%~dp0main.py" %* + if not exist "%~dp0.venv\Scripts\xau-trader.exe" ( + copy "%VENV_PY%" "%~dp0.venv\Scripts\xau-trader.exe" >nul + ) + "%~dp0.venv\Scripts\xau-trader.exe" "%~dp0main.py" %* ) else ( - python "%~dp0main.py" %* + for /f "delims=" %%i in ('where python') do set SYSTEM_PY=%%i & goto :found_sys_py + :found_sys_py + if not exist "%~dp0xau-trader.exe" ( + copy "%SYSTEM_PY%" "%~dp0xau-trader.exe" >nul + ) + "%~dp0xau-trader.exe" "%~dp0main.py" %* ) +