mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-10 05:45:13 +08:00
Added docker option for FWest98
Use as: `release.php --docker`
This commit is contained in:
parent
0173d30619
commit
4d0276bb09
1 changed files with 9 additions and 2 deletions
|
@ -7,6 +7,9 @@ if (!$gulp) {
|
||||||
exit('gulp not installed, run as root: npm install --global gulp-cli');
|
exit('gulp not installed, run as root: npm install --global gulp-cli');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$options = getopt('', ['docker']);
|
||||||
|
$options['docker'] = isset($options['docker']);
|
||||||
|
|
||||||
$package = json_decode(file_get_contents('package.json'));
|
$package = json_decode(file_get_contents('package.json'));
|
||||||
|
|
||||||
$zip_destination = "snappymail-{$package->version}.zip";
|
$zip_destination = "snappymail-{$package->version}.zip";
|
||||||
|
@ -71,7 +74,11 @@ foreach ($files as $file) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$tar->buildFromDirectory('./snappymail/', "@v/{$package->version}@");
|
if ($options['docker']) {
|
||||||
|
$tar->buildFromDirectory('./snappymail/', "@v/{$package->version}@");
|
||||||
|
} else {
|
||||||
|
$tar->buildFromDirectory('./', "@snappymail/v/{$package->version}@");
|
||||||
|
}
|
||||||
|
|
||||||
$zip->addFile('data/.htaccess');
|
$zip->addFile('data/.htaccess');
|
||||||
$tar->addFile('data/.htaccess');
|
$tar->addFile('data/.htaccess');
|
||||||
|
|
Loading…
Reference in a new issue