mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
feat(forge): proper rpm signing
This commit is contained in:
5
.github/actions/build-electron/action.yml
vendored
5
.github/actions/build-electron/action.yml
vendored
@@ -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"
|
||||||
|
|||||||
@@ -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"]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user