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>
This commit is contained in:
Daniel
2026-03-08 12:03:25 +00:00
parent 500c6cf9a7
commit 9485581f90
4 changed files with 78 additions and 17 deletions

20
start.bat Normal file
View File

@@ -0,0 +1,20 @@
@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