/
HookDev-Arch
/
ServerMonitor
Обзор
Документация
Войти
/
HookDev-Arch
/
ServerMonitor
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
2
CI/CD
Аналитика
Безопасность
master
start_win.bat
55 строк
2 KB
HookDev-Arch
upload files
09 окт 2025, 02:25
09 окт 2025, 02:25
4f23f3e
Код
Авторство
О чём код?
@echo off chcp 65001 >nul title HookDev-Arch Dashboard Launcher (Windows) color 0D echo. echo ================================ echo HookDev-Arch Dashboard v3.5.5 echo Windows Startup Utility echo ================================ echo. REM === Detect Python === where python >nul 2>nul if %errorlevel% neq 0 ( echo Python was not found. Install Python 3.12+ (64-bit) and ensure it is on PATH. pause exit /b ) REM === Validate Python architecture/version === python -c "import platform, sys; val_ok = sys.version_info >= (3, 12); arch = platform.architecture()[0]; arch_ok = arch == '64bit'; print('OK' if val_ok and arch_ok else f'{arch} {sys.version.split()[0]}'); sys.exit(0 if val_ok and arch_ok else 1)" > tmp_py_check.txt if %errorlevel% neq 0 ( set /p CHECK_RESULT=<tmp_py_check.txt del tmp_py_check.txt >nul 2>nul echo Python requirement failed. Expected 64-bit 3.12+, got %CHECK_RESULT%. pause exit /b ) del tmp_py_check.txt >nul 2>nul REM === Ensure pip is present === echo Ensuring pip is available... python -m ensurepip --default-pip >nul 2>nul REM === Install runtime dependencies === echo. echo Checking required dependencies... set REQ=fastapi uvicorn jinja2 requests psutil paramiko for %%p in (%REQ%) do ( python -c "import %%p" 2>nul if %errorlevel% neq 0 ( echo Installing %%p... python -m pip install %%p --quiet ) ) echo. echo Ready: dependencies installed. echo. REM === Launch the application === echo Launching HookDev-Arch Dashboard... python monitor_v3_base.py pause