mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 00:51:24 +08:00
Remove 'set-version' argument for release.php
This commit is contained in:
parent
de38c3b3e9
commit
1c9b53eb25
2 changed files with 5 additions and 8 deletions
|
@ -11,6 +11,10 @@ $nc_destination = "{$destPath}snappymail-{$package->version}-nextcloud.tar";
|
|||
$nc_tar = new PharData($nc_destination);
|
||||
$hashes = [];
|
||||
|
||||
file_put_contents(ROOT_DIR . '/integrations/nextcloud/snappymail/VERSION', $package->version);
|
||||
$file = ROOT_DIR . '/integrations/nextcloud/snappymail/appinfo/info.xml';
|
||||
file_put_contents($file, preg_replace('/<version>[^<]*</', "<version>{$package->version}<", file_get_contents($file)));
|
||||
|
||||
$nc_tar->buildFromDirectory('./integrations/nextcloud', "@integrations/nextcloud/snappymail/@");
|
||||
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('integrations/nextcloud/snappymail'));
|
||||
foreach ($files as $file) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<?php
|
||||
chdir(__DIR__);
|
||||
|
||||
$options = getopt('', ['aur','docker','plugins','set-version','skip-gulp','debian','nextcloud','owncloud','sign','cpanel']);
|
||||
$options = getopt('', ['aur','docker','plugins','skip-gulp','debian','nextcloud','owncloud','sign','cpanel']);
|
||||
|
||||
if (isset($options['plugins'])) {
|
||||
require(__DIR__ . '/build/plugins.php');
|
||||
|
@ -26,17 +26,10 @@ file_put_contents($file, preg_replace('/<upstream>[^<]*</', "<upstream>{$package
|
|||
// docker
|
||||
$file = __DIR__ . '/.docker/release/files/usr/local/include/application.ini';
|
||||
file_put_contents($file, preg_replace('/current = "[0-9.]+"/', "current = \"{$package->version}\"", file_get_contents($file)));
|
||||
// nextcloud
|
||||
$file = __DIR__ . '/integrations/nextcloud/snappymail/appinfo/info.xml';
|
||||
file_put_contents($file, preg_replace('/<version>[^<]*</', "<version>{$package->version}<", file_get_contents($file)));
|
||||
// virtualmin
|
||||
$file = __DIR__ . '/integrations/virtualmin/snappymail.pl';
|
||||
file_put_contents($file, preg_replace('/return \\( "[0-9]+\\.[0-9]+\\.[0-9]+" \\)/', "return ( \"{$package->version}\" )", file_get_contents($file)));
|
||||
|
||||
if (isset($options['set-version'])) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Arch User Repository
|
||||
// https://aur.archlinux.org/packages/snappymail/
|
||||
$options['aur'] = isset($options['aur']);
|
||||
|
|
Loading…
Reference in a new issue