Add blackfire to linux install

Add logging about install process

Fix formating of semversion blackfire

Only add version when needed

Pass phpversion
This commit is contained in:
Jaapio
2020-02-25 22:09:10 +01:00
parent 03fd0b8719
commit dc9461a053
6 changed files with 85 additions and 0 deletions

View File

@ -155,6 +155,20 @@ export async function addExtensionLinux(
const prefix = await utils.getExtensionPrefix(ext_name);
let install_command = '';
switch (true) {
// match blackfire... blackfire-1.31.0
case /^blackfire(-\d+\.\d+\.\d+)?$/.test(extension):
script +=
'\nsh ' +
path.join(__dirname, '../src/scripts/ext/blackfire.sh') +
' ' +
version +
' ' +
(await utils.getMinorVersion(version)).replace('.', '');
if (ext_version) {
script += ' ' + ext_version;
}
return;
// match pre-release versions
case /.*-(beta|alpha|devel|snapshot)/.test(version_extension):
script +=