Add PECL support on linux

This commit is contained in:
Shivam Mathur
2019-11-07 11:11:35 +05:30
parent 24ecbee4ea
commit e14155415a
9 changed files with 73 additions and 28 deletions

View File

@ -47,10 +47,14 @@ export async function run() {
let script_path: string = '';
switch (os_version) {
case 'darwin':
case 'linux':
script_path = await build(os_version + '.sh', version, os_version);
await exec('sh ' + script_path + ' ' + version + ' ' + __dirname);
break;
case 'linux':
let pecl: string = await utils.getInput('pecl', false);
script_path = await build(os_version + '.sh', version, os_version);
await exec('sh ' + script_path + ' ' + version + ' ' + pecl);
break;
case 'win32':
script_path = await build('win32.ps1', version, os_version);
await exec(