gpt4 book ai didi

ubuntu - 使用 jar 文件创建 DEB 包

转载 作者:行者123 更新时间:2023-12-04 18:32:14 36 4
gpt4 key购买 nike

我想用许多小的 bash 文件和 JAR 文件创建 DEB 包。这是控制文件:

Source: agent
Section: unknown
Priority: optional
Maintainer: support@test.com
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.5
Homepage: www.test.com
#Vcs-Git: git://anonscm.debian.org/collab-maint/agent.git
#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/agent.git;a=summary

Package: agent
Architecture: all
Depends: ${misc:Depends}
Description: agent
override_dh_fixperms:
dh_fixperms
find debian -name '*.*' -exec chmod 0644 {} +

tar 文件为 2.7 MB。
生成的 DEB 文件为 2.1 KB
看起来我缺少一些配置。你能帮我解决问题吗?

最佳答案

您的代码段显示您混合了许多用于打包的不同文件。
debian/control提供有关包的元信息(例如,要构建哪些二进制包,二进制包如何相互关联;人类可读的描述二进制包是关于什么的)

它不包含任何构建细节(例如,调用 javac 来编译 java 类),也不包含有关实际内容的信息(例如,哪些文件将包含在包中)。

构建脚本(或元构建脚本,因为它通常称为上游的构建系统),在 debian/rules 中定义.顺便说一下,这个文件经常有像 override_dh_fixperms: 这样的行。 ,而这些行从未在 debian/control 中找到.

有许多方法可以定义哪些文件将包含在一个包中,最简单的方法是 debian/install 中的文件/目录列表(每行一个) (分别debian/PACKAGE.install)

你真的应该阅读 official documentation关于在你做任何其他事情之前创建 Debian 包。

关于ubuntu - 使用 jar 文件创建 DEB 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32809900/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com