完善项目需求的文件

This commit is contained in:
2026-06-29 08:47:06 +08:00
parent 4156a2a0f1
commit 22eaca9e36
4 changed files with 89 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
echo ==============================
echo deb查看器 打包脚本
echo ==============================
echo.
:: 检查 Python
python --version >nul 2>&1
if errorlevel 1 (
echo [错误] 未找到 Python,请先安装 Python 3.10+
pause
exit /b 1
)
:: 安装/更新依赖
echo [1/2] 安装依赖...
pip install -r requirements.txt -q
if errorlevel 1 (
echo [错误] 依赖安装失败
pause
exit /b 1
)
:: 打包
echo [2/2] 正在打包为单个 exe...
echo.
pyinstaller ^
--noconfirm ^
--onefile ^
--windowed ^
--name "deb查看器" ^
--clean ^
deb_viewer.py
if errorlevel 1 (
echo.
echo [错误] 打包失败
pause
exit /b 1
)
echo.
echo ==============================
echo 打包完成!
echo 输出: dist\deb查看器.exe
echo ==============================
echo.
pause