94 lines
3.1 KiB
Plaintext
94 lines
3.1 KiB
Plaintext
|
|
================================================================================
|
|||
|
|
🎉 DEB 打包配置已完成!所有环境检查通过! 🎉
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
✓ linuxdeployqt 工具就绪
|
|||
|
|
✓ Qt 5.15.2 已安装
|
|||
|
|
✓ dpkg-deb 打包工具就绪
|
|||
|
|
✓ 所有配置文件已创建
|
|||
|
|
✓ 打包脚本已就绪
|
|||
|
|
✓ 项目已编译
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
📦 立即开始打包
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
【快速打包】
|
|||
|
|
$ ./make_deb.sh
|
|||
|
|
|
|||
|
|
【详细打包】
|
|||
|
|
$ ./build_deb.sh
|
|||
|
|
|
|||
|
|
打包完成后,DEB 文件位于:
|
|||
|
|
deb_package/screenlockdemo_1.0.0_amd64.deb
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
📚 文档指南
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
【快速入门】
|
|||
|
|
👉 PACKAGING_README.md - 快速参考指南 (6.8K)
|
|||
|
|
|
|||
|
|
【详细文档】
|
|||
|
|
📖 DEB_PACKAGE.md - 完整打包文档 (9.5K, 460+ 行)
|
|||
|
|
✅ PACKAGING_CHECKLIST.md - 测试检查清单 (7.9K, 347 行)
|
|||
|
|
📝 PACKAGING_SUMMARY.txt - 打包总结说明
|
|||
|
|
|
|||
|
|
【核心脚本】
|
|||
|
|
🚀 make_deb.sh - 快速打包脚本
|
|||
|
|
🔧 build_deb.sh - 完整打包脚本
|
|||
|
|
🎨 create_icon.sh - 图标生成脚本
|
|||
|
|
🔍 check_packaging_env.sh - 环境检查脚本
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
🎯 三步完成打包
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
1️⃣ 打包
|
|||
|
|
$ ./make_deb.sh
|
|||
|
|
|
|||
|
|
2️⃣ 安装测试
|
|||
|
|
$ sudo dpkg -i deb_package/screenlockdemo_1.0.0_amd64.deb
|
|||
|
|
|
|||
|
|
3️⃣ 运行测试
|
|||
|
|
$ screenlockdemo
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
💡 关键特性
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
✓ 使用 linuxdeployqt 自动收集所有 Qt 5.15.2 依赖库
|
|||
|
|
✓ 打包所有必需的 Qt 库和插件,无需系统安装 Qt
|
|||
|
|
✓ 独立部署,避免依赖冲突
|
|||
|
|
✓ 支持多个 Ubuntu 版本(18.04, 20.04, 22.04, 24.04)
|
|||
|
|
✓ 完整的文档和测试清单
|
|||
|
|
✓ 一键打包,简单易用
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
📦 DEB 包内容
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
/opt/screenlockdemo/
|
|||
|
|
├── bin/ScreenLockDemo ← 主程序
|
|||
|
|
├── lib/ ← Qt 库 + 依赖库
|
|||
|
|
│ ├── libQt5Core.so.5
|
|||
|
|
│ ├── libQt5Gui.so.5
|
|||
|
|
│ ├── libQt5Widgets.so.5
|
|||
|
|
│ └── ...
|
|||
|
|
├── plugins/ ← Qt 插件
|
|||
|
|
│ └── platforms/libqxcb.so
|
|||
|
|
└── screenlockdemo.sh ← 启动脚本
|
|||
|
|
|
|||
|
|
/usr/bin/screenlockdemo ← 系统命令
|
|||
|
|
|
|||
|
|
预计包大小: 50-80 MB
|
|||
|
|
|
|||
|
|
================================================================================
|
|||
|
|
✨ 立即开始
|
|||
|
|
================================================================================
|
|||
|
|
|
|||
|
|
$ ./make_deb.sh
|
|||
|
|
|
|||
|
|
祝打包顺利!🚀
|
|||
|
|
|