完善项目需求的文件

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
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -euo pipefail
echo "=============================="
echo " deb查看器 打包脚本"
echo "=============================="
echo
# 检查 Python
if ! command -v python3 &>/dev/null; then
echo "[错误] 未找到 python3,请先安装 Python 3.10+"
exit 1
fi
# 安装/更新依赖
echo "[1/2] 安装依赖..."
pip3 install -r requirements.txt -q
# 打包
echo "[2/2] 正在打包为单个可执行文件..."
echo
pyinstaller \
--noconfirm \
--onefile \
--windowed \
--name "deb_viewer" \
--clean \
deb_viewer.py
echo
echo "=============================="
echo " 打包完成!"
echo " 输出: dist/deb_viewer"
echo "=============================="