From 536a9d20fd6647d49cdec35481a6950d5323ac39 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 16 Feb 2022 16:55:56 +0100 Subject: [PATCH] Resolve #131 --- build/SnappyMail.asc | 9 +++++++++ release.php | 13 ++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 build/SnappyMail.asc diff --git a/build/SnappyMail.asc b/build/SnappyMail.asc new file mode 100644 index 000000000..39afe03b7 --- /dev/null +++ b/build/SnappyMail.asc @@ -0,0 +1,9 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEYg0atBYJKwYBBAHaRw8BAQdA2S2tvGavChACjtBastsKRThD3rsBW1LUZLmN +Zbs4uaG0I1NuYXBweU1haWwgPHJlbGVhc2VzQHNuYXBweW1haWwuZXU+iJQEExYK +ADwWIQQQFuRweRRVQvi6EzVIIIuhMpDz6wUCYg0atAIbAwULCQgHAgMiAgEGFQoJ +CAsCBBYCAwECHgcCF4AACgkQSCCLoTKQ8+u9SAD/Q/IoAwjUkKDJBPq0RGwCFnl6 +FG/VHB97CvBSpGOxtIsBAMCwMhWlsaBHAEqbzxiN+cdlMYwV23+SWLUJ/XMFgukE +=5ZwF +-----END PGP PUBLIC KEY BLOCK----- diff --git a/release.php b/release.php index f46176cf5..df246c7bc 100755 --- a/release.php +++ b/release.php @@ -2,7 +2,7 @@ close(); $tar->compress(Phar::GZ); unlink($tar_destination); +$tar_destination .= '.gz'; -echo "{$zip_destination} created\n{$tar_destination}.gz created\n"; +echo "{$zip_destination} created\n{$tar_destination} created\n"; rename("snappymail/v/{$package->version}", 'snappymail/v/0.0.0'); +if (isset($options['sign'])) { + echo "\x1b[33;1m === PGP Sign === \x1b[0m\n"; + passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign '.escapeshellarg($tar_destination), $return_var); + passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign '.escapeshellarg($zip_destination), $return_var); +} + // Arch User Repository if ($options['aur']) { // extension_loaded('blake2') @@ -191,7 +198,7 @@ if ($options['aur']) { } $b2sums = function_exists('b2sum') ? [ - b2sum("{$tar_destination}.gz"), + b2sum($tar_destination), b2sum(__DIR__ . '/build/arch/snappymail.sysusers'), b2sum(__DIR__ . '/build/arch/snappymail.tmpfiles') ] : [];