Files
zkcoi 59e3059246 rebuild: split core into separate repo; move wg-go integration to internal/ctr/corebind
- go.mod: require git.zkcoi.com/zkcoi/meshray/core, replace => ../Meshray
- internal/ctr/corebind: EnhancedBind + registry + adapter (wg-go integration isolated)
- cmd/mr-wg migrated from old core/cmd/meshray-core
- core/ removed; CHANGELOG updated; fix checkdb vet warning
2026-07-15 16:08:13 +08:00

46 lines
1.1 KiB
Batchfile

@echo off
chcp 65001 >nul
echo ========================================
echo MeshRay 一键启动脚本
echo ========================================
echo.
REM 检查后端是否已编译
if not exist "meshray.exe" (
echo [1/3] 正在编译后端...
go build -o meshray.exe ./cmd/meshray
if errorlevel 1 (
echo ❌ 后端编译失败!
pause
exit /b 1
)
echo ✅ 后端编译完成
) else (
echo [1/2] 后端已编译,跳过
)
REM 检查前端是否已编译(原生静态文件架构,无需构建)
echo [2/2] ✅ 前端为原生静态文件架构,无需构建
echo.
echo [3/3] 正在启动 MeshRay 服务...
echo.
echo ========================================
echo 🚀 MeshRay 启动成功!
echo ========================================
echo.
echo 📱 访问地址:http://localhost:9531
echo.
echo 💡 提示:
echo - 首次启动会生成管理员账户
echo - 按 Ctrl+C 停止服务
echo - 日志文件:data/logs/
echo.
echo ========================================
echo.
REM 启动服务
meshray.exe
pause