MetaGuardSOT/run.bat
2026-06-19 06:27:17 +00:00

43 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
title MetaGuardSOT
echo ============================================
echo MetaGuardSOT - Metadata Risk Scanner
echo ============================================
echo.
where python >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo [ОШИБКА] Python не найден!
echo.
echo Скачай и установи Python с сайта:
echo https://www.python.org/downloads/
echo.
echo ВАЖНО: при установке поставь галочку "Add Python to PATH"
echo.
echo После установки перезапусти этот файл.
echo.
pause
exit /b 1
)
echo [1/3] Устанавливаю зависимости...
python -m pip install -r requirements.txt
if %ERRORLEVEL% neq 0 (
echo [ОШИБКА] Не удалось установить зависимости.
pause
exit /b 1
)
echo OK
echo [2/3] Запускаю сервер...
echo.
echo Открой в браузере: http://127.0.0.1:5000
echo Закрой это окно, чтобы остановить сервер.
echo.
start http://127.0.0.1:5000
python app.py
pause