@echo off
cd /d "%~dp0"
echo Cursor Metrics - instalace zavislosti
python --version >nul 2>&1
if errorlevel 1 (
    echo CHYBA: Python neni v PATH. Nainstalujte Python 3.11+ z python.org
    pause
    exit /b 1
)
if not exist ".venv\Scripts\python.exe" (
    echo Vytvarim virtualni prostredi...
    python -m venv .venv
    if errorlevel 1 (
        echo CHYBA: Nepodarilo se vytvorit .venv
        pause
        exit /b 1
    )
)
echo Instaluji pystray a Pillow...
".venv\Scripts\python.exe" -m pip install --upgrade pip
".venv\Scripts\pip.exe" install -r requirements.txt
if errorlevel 1 (
    echo CHYBA: pip install selhal
    pause
    exit /b 1
)
echo.
echo Hotovo. Spustte start.vbs nebo start.bat
pause
