Files
tb_pl/jd/run_win.bat
2026-04-26 13:39:19 +08:00

36 lines
652 B
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 JD 服务 - 一键启动
echo ========================================
echo JD 服务 - 依赖安装与启动
echo ========================================
echo.
cd /d "%~dp0"
:: 检查 Python
python --version >nul 2>&1
if errorlevel 1 (
echo [错误] 未找到 Python请先安装 Python 并加入 PATH。
pause
exit /b 1
)
echo [1/2] 安装依赖...
python -m pip install -r requirements.txt -q
if errorlevel 1 (
echo [错误] 依赖安装失败。
pause
exit /b 1
)
echo 依赖已就绪。
echo.
echo [2/2] 启动服务...
echo 按 Ctrl+C 可停止服务。
echo.
python jd.py
pause