打包文件

This commit is contained in:
2025-12-30 17:50:43 +08:00
parent 26397a83dd
commit 2fe86ef332
5 changed files with 254 additions and 0 deletions

30
打包.bat Normal file
View File

@@ -0,0 +1,30 @@
@echo off
chcp 65001 >nul
echo ========================================
echo 服装布料计算管理器 - 打包脚本
echo ========================================
echo.
echo 正在检查依赖...
python -c "import PyQt5" 2>nul
if errorlevel 1 (
echo 错误: 未安装PyQt5正在安装...
pip install -r requirements.txt
if errorlevel 1 (
echo 安装失败,请手动执行: pip install -r requirements.txt
pause
exit /b 1
)
)
echo.
echo 开始打包...
python build_exe.py
echo.
echo ========================================
echo 打包完成!
echo exe文件位置: dist\服装布料计算管理器.exe
echo ========================================
pause