fix: 统一端口并完善桌面端授权和安装

This commit is contained in:
2026-05-20 16:54:24 +08:00
parent 22c343a85e
commit 1288553df8
22 changed files with 363 additions and 363 deletions
+29 -8
View File
@@ -1,5 +1,5 @@
@echo off
title CapacityReport v2.0.2
title CapacityReport v3.0.0
echo ========================================
echo CapacityReport - report service
@@ -28,13 +28,34 @@ if errorlevel 1 (
)
if not exist "frontend\dist\index.html" (
echo [ERROR] Frontend build output not found.
echo [HINT] Run these commands first:
echo cd frontend
echo npm install
echo npm run build
pause
exit /b 1
echo [INFO] Frontend build output not found. Building frontend...
where npm >nul 2>&1
if errorlevel 1 (
echo [ERROR] npm not found. Install Node.js first.
pause
exit /b 1
)
pushd frontend
if not exist "node_modules" (
echo [INFO] Installing frontend dependencies...
call npm ci
if errorlevel 1 (
echo [ERROR] Failed to install frontend dependencies.
popd
pause
exit /b 1
)
)
call npm run build
if errorlevel 1 (
echo [ERROR] Failed to build frontend.
popd
pause
exit /b 1
)
popd
)
:loop