mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 08:16:44 +03:00
v2.6.2
This commit is contained in:
parent
d139c02cc9
commit
b403f0579b
6 changed files with 26 additions and 19 deletions
|
|
@ -100,6 +100,13 @@ $options['docker'] = isset($options['docker']) || (!$options['aur'] && $docker &
|
|||
|
||||
$package = json_decode(file_get_contents('package.json'));
|
||||
|
||||
// Update files that contain version
|
||||
file_put_contents(__DIR__ . '/integrations/nextcloud/snappymail/VERSION', $package->version);
|
||||
$file = __DIR__ . '/integrations/nextcloud/snappymail/appinfo/info.xml';
|
||||
file_put_contents($file, preg_replace('/<version>[^<]*</', "<version>{$package->version}<", file_get_contents($file)));
|
||||
$file = __DIR__ . '/arch/PKGBUILD';
|
||||
file_put_contents($file, preg_replace('/pkgver=[0-9.]+/', "pkgver={$package->version}", file_get_contents($file)));
|
||||
|
||||
$destPath = "build/dist/releases/webmail/{$package->version}/";
|
||||
is_dir($destPath) || mkdir($destPath, 0777, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue