feat(forge): proper rpm signing

This commit is contained in:
Elian Doran
2025-08-14 12:04:12 +03:00
parent d33d27ee82
commit b66b4dec83
2 changed files with 5 additions and 3 deletions

View File

@@ -174,8 +174,11 @@ runs:
rpm --import pubkey
rm pubkey
# Validate code signing
# Sign the RPM
rpm_file=$(find ./apps/desktop/dist -name "*.rpm" -print -quit)
rpmsign --define "_gpg_name Trilium Notes Signing Key <triliumnotes@outlook.com>" --addsign "$rpm_file"
# Validate code signing
if ! rpm -K "$rpm_file" | grep -q "digests signatures OK"; then
echo .rpm file not signed
rpm -Kv "$rpm_file"