mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +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);
|
$nc_tar = new PharData($nc_destination);
|
||||||
$hashes = [];
|
$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/@");
|
$nc_tar->buildFromDirectory('./integrations/nextcloud', "@integrations/nextcloud/snappymail/@");
|
||||||
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('integrations/nextcloud/snappymail'));
|
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('integrations/nextcloud/snappymail'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<?php
|
<?php
|
||||||
chdir(__DIR__);
|
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'])) {
|
if (isset($options['plugins'])) {
|
||||||
require(__DIR__ . '/build/plugins.php');
|
require(__DIR__ . '/build/plugins.php');
|
||||||
|
@ -26,17 +26,10 @@ file_put_contents($file, preg_replace('/<upstream>[^<]*</', "<upstream>{$package
|
||||||
// docker
|
// docker
|
||||||
$file = __DIR__ . '/.docker/release/files/usr/local/include/application.ini';
|
$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)));
|
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
|
// virtualmin
|
||||||
$file = __DIR__ . '/integrations/virtualmin/snappymail.pl';
|
$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)));
|
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
|
// Arch User Repository
|
||||||
// https://aur.archlinux.org/packages/snappymail/
|
// https://aur.archlinux.org/packages/snappymail/
|
||||||
$options['aur'] = isset($options['aur']);
|
$options['aur'] = isset($options['aur']);
|
||||||
|
|
Loading…
Reference in a new issue