|
2 | 2 | <?php |
3 | 3 | chdir(__DIR__); |
4 | 4 |
|
5 | | -$options = getopt('', ['aur','docker','plugins','set-version','skip-gulp','debian','sign']); |
| 5 | +$options = getopt('', ['aur','docker','plugins','set-version','skip-gulp','debian','nextcloud','sign']); |
6 | 6 |
|
7 | 7 | if (isset($options['plugins'])) { |
8 | 8 | require(__DIR__ . '/build/plugins.php'); |
|
27 | 27 | $file = __DIR__ . '/.docker/release/files/usr/local/include/application.ini'; |
28 | 28 | file_put_contents($file, preg_replace('/current = "[0-9.]+"/', "current = \"{$package->version}\"", file_get_contents($file))); |
29 | 29 | // nextcloud |
30 | | -file_put_contents(__DIR__ . '/integrations/nextcloud/snappymail/VERSION', $package->version); |
31 | 30 | $file = __DIR__ . '/integrations/nextcloud/snappymail/appinfo/info.xml'; |
32 | 31 | file_put_contents($file, preg_replace('/<version>[^<]*</', "<version>{$package->version}<", file_get_contents($file))); |
33 | 32 | // virtualmin |
@@ -175,6 +174,10 @@ function __get_custom_data_full_path() |
175 | 174 |
|
176 | 175 | echo "{$zip_destination} created\n{$tar_destination} created\n"; |
177 | 176 |
|
| 177 | +if (isset($options['nextcloud'])) { |
| 178 | + require(__DIR__ . '/build/nextcloud.php'); |
| 179 | +} |
| 180 | + |
178 | 181 | rename("snappymail/v/{$package->version}", 'snappymail/v/0.0.0'); |
179 | 182 |
|
180 | 183 | file_put_contents("{$destPath}core.json", '{ |
@@ -252,6 +255,10 @@ function b2sum($file) { |
252 | 255 | echo "\x1b[33;1m === PGP Sign === \x1b[0m\n"; |
253 | 256 | passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign '.escapeshellarg($tar_destination), $return_var); |
254 | 257 | passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign '.escapeshellarg($zip_destination), $return_var); |
| 258 | + if (isset($options['nextcloud'])) { |
| 259 | + passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign ' |
| 260 | + .escapeshellarg("{$destPath}snappymail-{$package->version}-nextcloud.tar.gz"), $return_var); |
| 261 | + } |
255 | 262 | if (isset($options['debian'])) { |
256 | 263 | passthru('gpg --local-user 1016E47079145542F8BA133548208BA13290F3EB --armor --detach-sign ' |
257 | 264 | . escapeshellarg(__DIR__ . "/build/dist/releases/webmail/{$package->version}/" . basename(DEB_DEST_DIR.'.deb')), $return_var); |
|
0 commit comments