Open Astro-Lee opened 2 months ago
本文介绍 deb 的构建方式
gpg --full-generate-key --expert # 记住私钥的密码
gpg --armor --export GPG密钥ID
复制以 -----BEGIN PGP PUBLIC KEY BLOCK----- 开头并以 -----END PGP PUBLIC KEY BLOCK----- 结尾的 GPG 密钥。将内容提交到 keyserver
-----BEGIN PGP PUBLIC KEY BLOCK-----
-----END PGP PUBLIC KEY BLOCK-----
等待10分钟左右,进入 launchpad 的OpenPGP keys
OpenPGP keys
运行一下命令获得fingerprint
gpg --fingerprint
将fingerprint填入OpenPGP keys
将以下内容写入到一个临时文件temp.txt中,并执行gpg -d temp.txt
temp.txt
gpg -d temp.txt
DEBMAIL="xxxx@gamil.com" DEBFULLNAME="XXX" DEBSIGN_KEYID="GPG密钥ID" export DEBMAIL DEBFULLNAME DEBSIGN_KEYID #DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I -us -uc" #DEBUILD_LINTIAN_OPTS="-i -I --show-overrides"
psfex-3.24.2.tar.gz 和 psfex-3.24.2
psfex-3.24.2.tar.gz
psfex-3.24.2
cd psfex-3.24.2 ./autogen.sh && ./configure dh_make -f ../psfex-3.24.2.tar.gz
修改debian目录中control, changelog和其他文件的内容
control
changelog
其中编辑debian/changelog
debian/changelog
dpkg-source --commit #修改过上游版本的源码,需要commit
debuild -S -sa -k$DEBSIGN_KEYID | tee /tmp/debuild.log 2>&1 # 并输入签名的密码
dupload XXX.changes dput -f ppa:ruizhi-li/XXXsoftware XXX.changes
本文介绍 deb 的构建方式
前期准备
创建GPG公钥和私钥
复制以
-----BEGIN PGP PUBLIC KEY BLOCK-----
开头并以-----END PGP PUBLIC KEY BLOCK-----
结尾的 GPG 密钥。将内容提交到 keyserver等待10分钟左右,进入 launchpad 的
OpenPGP keys
运行一下命令获得fingerprint
将fingerprint填入
OpenPGP keys
将以下内容写入到一个临时文件
temp.txt
中,并执行gpg -d temp.txt
设置环境变量
从项目源码构建
psfex-3.24.2.tar.gz
和psfex-3.24.2
修改debian目录中
control
,changelog
和其他文件的内容其中编辑![image](https://github.com/Astro-Lee/astro-lee.github.io/assets/61745903/431d2007-3b7c-42ea-bc9f-83b47ca23b06)
debian/changelog
参考