This commit is contained in:
the-djmaze 2022-02-28 11:35:29 +01:00
parent 92079fd6f7
commit ed959459ef
12 changed files with 33 additions and 96 deletions

View file

@ -178,12 +178,6 @@ 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')
@ -247,3 +241,13 @@ else if ($options['docker']) {
echo "Docker not installed!\n";
}
}
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);
if (isset($options['debian'])) {
passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign '
. escapeshellarg(__DIR__ . "/build/dist/releases/webmail/{$package->version}/" . basename(DEB_DEST_DIR.'.deb')), $return_var);
}
}