Files
cc-web/start.bat
Daniel 9485581f90 v1.1.0: 支持 Windows 服务端部署
- 新增跨平台进程终止 killProcess(),Windows 使用 taskkill,Linux 使用 SIGTERM/SIGKILL
- spawn 增加 windowsHide 参数,HOME 路径增加 USERPROFILE fallback
- 新增 start.bat 一键启动脚本
- README 快速开始分 Linux/Windows 两部分,新增 Windows 部署章节

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 12:03:25 +00:00

21 lines
341 B
Batchfile

@echo off
chcp 65001 >nul 2>&1
cd /d "%~dp0"
where node >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Node.js not found. Please install Node.js first.
echo https://nodejs.org/
pause
exit /b 1
)
if not exist node_modules (
echo Installing dependencies...
npm install
)
echo Starting CC-Web...
node server.js
pause