-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-all.bat
More file actions
44 lines (36 loc) · 1.34 KB
/
start-all.bat
File metadata and controls
44 lines (36 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
chcp 65001 >nul
title WinTab 启动器
echo ╔═══════════════════════════════════════╗
echo ║ WinTab 一键启动 ║
echo ╚═══════════════════════════════════════╝
echo.
:: 检查 Node.js
where node >nul 2>&1
if %errorlevel% neq 0 (
echo [错误] 未找到 Node.js,请先安装
pause
exit /b 1
)
:: 检查 .NET
where dotnet >nul 2>&1
if %errorlevel% neq 0 (
echo [错误] 未找到 .NET SDK,请先安装
pause
exit /b 1
)
echo [1/3] 启动 Server (Next.js)...
start "WinTab Server" cmd /k "cd /d %~dp0server && npm run dev"
echo [2/3] 等待 Server 启动...
timeout /t 5 /nobreak >nul
echo [3/3] 启动 Agent (C#) - 自动连接模式...
start "WinTab Agent" cmd /k "cd /d %~dp0agent && dotnet run --project WinTabAgent -- --auto"
echo.
echo ═══════════════════════════════════════
echo ✓ Server: http://localhost:3001
echo ✓ Agent: 已启动
echo ═══════════════════════════════════════
echo.
echo 按任意键打开控制台...
pause >nul
start http://localhost:3001