名称: deb-package-builder 描述: 为Ubuntu、Debian及其衍生系统构建具有正确控制文件、依赖项和维护脚本的Debian软件包(.deb) 允许使用的工具: Read, Write, Edit, Bash, Glob, Grep 标签: [linux, debian, 打包, deb, 发行版]
deb-package-builder
为Ubuntu、Debian及其衍生系统构建具有正确控制文件、依赖项和维护脚本的Debian软件包(.deb)。
能力
- 生成DEBIAN/control控制文件
- 配置软件包依赖项
- 创建维护脚本(postinst、prerm等)
- 设置桌面集成
- 配置文件权限
- 使用dpkg-deb构建软件包
- 使用GPG签名软件包
输入模式
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"packageName": { "type": "string" },
"version": { "type": "string" },
"dependencies": { "type": "array" },
"architecture": { "enum": ["amd64", "arm64", "all"] }
},
"required": ["projectPath", "packageName", "version"]
}
DEBIAN/control 示例
Package: myapp
Version: 1.0.0
Section: utils
Priority: optional
Architecture: amd64
Depends: libc6 (>= 2.17), libgtk-3-0
Maintainer: Your Name <email@example.com>
Description: My Application
A longer description of my application
that can span multiple lines.
构建命令
dpkg-deb --build --root-owner-group myapp_1.0.0_amd64
相关技能
rpm-spec-generatorlinux-gpg-signing