WhereAmI/start.bat
2026-06-15 00:49:26 +08:00

45 lines
1008 B
Batchfile
Raw Permalink 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
echo ========================================
echo WhereAmI - 多协议轮转代理工具
echo ========================================
echo.
echo 正在检查Python环境...
python --version >nul 2>&1
if errorlevel 1 (
echo [错误] 未找到Python请先安装Python 3.9+
pause
exit /b 1
)
echo [成功] Python环境正常
echo.
echo 正在检查依赖包...
python -c "import PyQt6, requests, bs4, yaml, socks, loguru" >nul 2>&1
if errorlevel 1 (
echo [提示] 正在安装依赖包...
pip install -r requirements.txt
if errorlevel 1 (
echo [错误] 依赖安装失败
pause
exit /b 1
)
echo [成功] 依赖安装完成
) else (
echo [成功] 依赖包已安装
)
echo.
echo ========================================
echo 启动 WhereAmI...
echo ========================================
echo.
python main.py
if errorlevel 1 (
echo.
echo [错误] 程序异常退出请查看logs/whereami.log
pause
)