@echo off
chcp 65001 >nul
title Tamer SEO Analyzer V1.4.2
cd /d "%~dp0"

echo ==============================================
echo  Tamer SEO Analyzer V1.4.2
echo ==============================================
echo.

where python >nul 2>nul
if errorlevel 1 (
    echo Python bulunamadi. Lutfen Python 3.10 veya uzeri kurun.
    echo https://www.python.org/downloads/
    pause
    exit /b 1
)

if not exist ".venv" (
    echo Sanal ortam olusturuluyor...
    python -m venv .venv
)

call .venv\Scripts\activate.bat
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python app.py

pause
