first commit

This commit is contained in:
mei
2026-08-10 22:56:38 +08:00
commit 2086bd79cc
32 changed files with 14110 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
@echo off
echo ==========================================
echo 设备管理系统 - Windows EXE 打包脚本
echo ==========================================
echo.
echo [1/4] 安装后端依赖...
call npm install
if %errorlevel% neq 0 (
echo 后端依赖安装失败!
pause
exit /b 1
)
echo.
echo [2/4] 安装前端依赖...
cd client
call npm install
if %errorlevel% neq 0 (
echo 前端依赖安装失败!
pause
exit /b 1
)
echo.
echo [3/4] 构建前端...
call npm run build
if %errorlevel% neq 0 (
echo 前端构建失败!
pause
exit /b 1
)
cd ..
echo.
echo [4/4] 打包 Electron 应用...
call npx electron-builder --win
if %errorlevel% neq 0 (
echo Electron 打包失败!
pause
exit /b 1
)
echo.
echo ==========================================
echo 打包完成!
echo.
echo EXE安装包位于: dist-electron 目录
echo ==========================================
echo.
pause