added: signing (not ready), changed: pkg release

This commit is contained in:
2023-04-27 13:52:23 +02:00
parent 71114b1ec9
commit d78bf72e89
4 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,8 @@ DIR="$(cd "$(dirname "$0")" && pwd)"
# generate Packages file
dpkg-scanpackages --multiversion --arch amd64 "./apt-repo/pool/" > "./apt-repo/dists/stable/main/binary-amd64/Packages"
# compress Packages file
cat "./apt-repo/dists/stable/main/binary-amd64/Packages" | gzip -9 > "./apt-repo/dists/stable/main/binary-amd64/Packages.gz"
# generate Release file
cd "./apt-repo/dists/stable/"
$DIR/generate-release.sh > "Release"

5
scripts/gpgSign.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# This is INSECURE!
cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs > ~/tmprepo/apt-repo/dists/stable/Release.gpg
cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs --clearsign > ~/tmprepo/apt-repo/dists/stable/InRelease