feat(forge): proper rpm signing

This commit is contained in:
Elian Doran 2025-08-14 12:04:12 +03:00
parent d33d27ee82
commit b66b4dec83
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -174,8 +174,11 @@ runs:
rpm --import pubkey rpm --import pubkey
rm pubkey rm pubkey
# Validate code signing # Sign the RPM
rpm_file=$(find ./apps/desktop/dist -name "*.rpm" -print -quit) 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 if ! rpm -K "$rpm_file" | grep -q "digests signatures OK"; then
echo .rpm file not signed echo .rpm file not signed
rpm -Kv "$rpm_file" rpm -Kv "$rpm_file"

View File

@ -106,8 +106,7 @@ const config: ForgeConfig = {
{ {
name: "@electron-forge/maker-rpm", name: "@electron-forge/maker-rpm",
config: { config: {
options: baseLinuxMakerConfigOptions, options: baseLinuxMakerConfigOptions
args: ["--rpm-sign"]
} }
}, },
{ {