chore: ajouter agent_v0/ au tracking git (était un repo embarqué)
Suppression du .git embarqué dans agent_v0/ — le code est maintenant tracké normalement dans le repo principal. Inclut : agent_v1 (client), server_v1 (streaming), lea_ui (chat client) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
64
agent_v0/deploy/windows_client/setup.bat
Normal file
64
agent_v0/deploy/windows_client/setup.bat
Normal file
@@ -0,0 +1,64 @@
|
||||
@echo off
|
||||
:: setup_v1.bat - Installation conviviale pour Windows
|
||||
|
||||
echo ==================================================
|
||||
echo Agent V1 - RPA Vision - Installation Windows
|
||||
echo ==================================================
|
||||
echo.
|
||||
|
||||
:: 0. Verifier que Python est installe
|
||||
python --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [ERREUR] Python n'est pas installe ou pas dans le PATH.
|
||||
echo Telecharger Python 3.10+ depuis https://python.org
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: 1. Creation de l'environnement virtuel
|
||||
if not exist ".venv_v1_win" (
|
||||
echo [1/4] Creation de l'environnement virtuel...
|
||||
python -m venv .venv_v1_win
|
||||
) else (
|
||||
echo [1/4] Environnement virtuel existant detecte.
|
||||
)
|
||||
|
||||
:: 2. Activation
|
||||
call .venv_v1_win\Scripts\activate.bat
|
||||
|
||||
:: 3. Mise a jour pip et installation des dependances
|
||||
echo [2/4] Installation des dependances...
|
||||
python -m pip install --upgrade pip --quiet
|
||||
pip install -r agent_v1\requirements.txt --quiet
|
||||
|
||||
:: 4. Post-installation Windows (pywin32)
|
||||
echo [3/4] Configuration Windows...
|
||||
python -c "import win32api" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo pywin32 post-install...
|
||||
python .venv_v1_win\Scripts\pywin32_postinstall.py -install >nul 2>&1
|
||||
)
|
||||
|
||||
:: 5. Verification rapide
|
||||
echo [4/4] Verification...
|
||||
python -c "import pystray; import plyer; import mss; import pynput; print(' Toutes les dependances OK')"
|
||||
if errorlevel 1 (
|
||||
echo [ERREUR] Certaines dependances sont manquantes.
|
||||
echo Relancer : pip install -r agent_v1\requirements.txt
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ==================================================
|
||||
echo Installation terminee !
|
||||
echo.
|
||||
echo Pour lancer l'agent :
|
||||
echo .venv_v1_win\Scripts\activate.bat
|
||||
echo python run_agent_v1.py
|
||||
echo.
|
||||
echo Configuration serveur :
|
||||
echo Editer agent_config.json
|
||||
echo ou definir RPA_SERVER_HOST=192.168.1.x
|
||||
echo ==================================================
|
||||
pause
|
||||
Reference in New Issue
Block a user