mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-04 02:37:19 +08:00
Resolve #131
This commit is contained in:
parent
7265cf03d9
commit
536a9d20fd
2 changed files with 19 additions and 3 deletions
9
build/SnappyMail.asc
Normal file
9
build/SnappyMail.asc
Normal file
|
@ -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-----
|
13
release.php
13
release.php
|
@ -2,7 +2,7 @@
|
||||||
<?php
|
<?php
|
||||||
chdir(__DIR__);
|
chdir(__DIR__);
|
||||||
|
|
||||||
$options = getopt('', ['aur','docker','plugins','set-version','skip-gulp','debian']);
|
$options = getopt('', ['aur','docker','plugins','set-version','skip-gulp','debian','sign']);
|
||||||
|
|
||||||
if (isset($options['plugins'])) {
|
if (isset($options['plugins'])) {
|
||||||
require(__DIR__ . '/build/plugins.php');
|
require(__DIR__ . '/build/plugins.php');
|
||||||
|
@ -173,11 +173,18 @@ $zip->close();
|
||||||
|
|
||||||
$tar->compress(Phar::GZ);
|
$tar->compress(Phar::GZ);
|
||||||
unlink($tar_destination);
|
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');
|
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
|
// Arch User Repository
|
||||||
if ($options['aur']) {
|
if ($options['aur']) {
|
||||||
// extension_loaded('blake2')
|
// extension_loaded('blake2')
|
||||||
|
@ -191,7 +198,7 @@ if ($options['aur']) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$b2sums = function_exists('b2sum') ? [
|
$b2sums = function_exists('b2sum') ? [
|
||||||
b2sum("{$tar_destination}.gz"),
|
b2sum($tar_destination),
|
||||||
b2sum(__DIR__ . '/build/arch/snappymail.sysusers'),
|
b2sum(__DIR__ . '/build/arch/snappymail.sysusers'),
|
||||||
b2sum(__DIR__ . '/build/arch/snappymail.tmpfiles')
|
b2sum(__DIR__ . '/build/arch/snappymail.tmpfiles')
|
||||||
] : [];
|
] : [];
|
||||||
|
|
Loading…
Reference in a new issue