fix: auto-sign unsigned packages in repo-db-update
All checks were successful
release / Release (push) Successful in 4m51s
All checks were successful
release / Release (push) Successful in 4m51s
This commit is contained in:
10
cfg/repo.sh
10
cfg/repo.sh
@@ -141,6 +141,16 @@ REPO_NAME="aios"
|
|||||||
REPO_DIR="${HOME}/ai/repo"
|
REPO_DIR="${HOME}/ai/repo"
|
||||||
|
|
||||||
cd "$REPO_DIR/x86_64"
|
cd "$REPO_DIR/x86_64"
|
||||||
|
|
||||||
|
# Sign unsigned packages
|
||||||
|
for pkg in *.pkg.tar.zst; do
|
||||||
|
[ -f "$pkg" ] || continue
|
||||||
|
if [ ! -f "${pkg}.sig" ]; then
|
||||||
|
echo "Signing $pkg..."
|
||||||
|
gpg --detach-sign --default-key "$GPG_KEY" "$pkg"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
rm -f "${REPO_NAME}".{db,files}*
|
rm -f "${REPO_NAME}".{db,files}*
|
||||||
repo-add --sign --key "$GPG_KEY" "${REPO_NAME}.db.tar.gz" *.pkg.tar.zst
|
repo-add --sign --key "$GPG_KEY" "${REPO_NAME}.db.tar.gz" *.pkg.tar.zst
|
||||||
gpg --export "$GPG_KEY" > "$REPO_DIR/aios.gpg"
|
gpg --export "$GPG_KEY" > "$REPO_DIR/aios.gpg"
|
||||||
|
|||||||
Reference in New Issue
Block a user