Files
aigc-home/setup.bat
T
happymy 929df8c9b6 feat: 添加本地启动/停止脚本并纳入版本控制
新增 setup.bat(首次安装)、start.bat(前台启动)、start-bg.bat(后台启动)、
stop.bat(停止)四个脚本,便于一键起停前后端;.gitignore 移除
start.bat/end.bat 遗留忽略条目。
2026-09-12 08:42:45 +08:00

35 lines
911 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 936 >nul
setlocal
set ROOT=%~dp0
set BACKEND=%ROOT%calliope-backend
set WEB=%ROOT%calliope-web
echo ============================================
echo Calliope 首次安装(幂等,可重复运行)
echo ============================================
if not exist "%BACKEND%\.venv\Scripts\python.exe" (
echo [1/2] 创建虚拟环境并安装后端依赖...
cd /d "%BACKEND%"
python -m venv .venv
call .venv\Scripts\activate.bat
.venv\Scripts\python -m pip install --upgrade pip
.venv\Scripts\pip install -e ".[dev]"
) else (
echo [1/2] 后端依赖已安装,跳过。
)
if not exist "%WEB%\node_modules" (
echo [2/2] 安装前端依赖 npm install...
cd /d "%WEB%"
call npm install
) else (
echo [2/2] 前端依赖已安装,跳过。
)
echo.
echo 安装完成。首次启动前可复制 calliope_config.example.json 为 calliope_config.json 配置 LLM/ComfyUI,
echo 也可以在应用内 Settings 页面配置。
echo.
pause