mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add linux tool check
This commit is contained in:
parent
63287dd9c4
commit
8b48cf7f70
@ -21,18 +21,18 @@ class LinuxToolCheckList
|
|||||||
$distro = SystemUtil::getOSRelease();
|
$distro = SystemUtil::getOSRelease();
|
||||||
|
|
||||||
$required = match ($distro['dist']) {
|
$required = match ($distro['dist']) {
|
||||||
'ubuntu', 'debian' => [
|
|
||||||
'make', 'bison', 'flex',
|
|
||||||
'git', 'autoconf', 'automake',
|
|
||||||
'tar', 'unzip', 'gzip',
|
|
||||||
'bzip2', 'cmake',
|
|
||||||
],
|
|
||||||
'alpine' => [
|
'alpine' => [
|
||||||
'make', 'bison', 'flex',
|
'make', 'bison', 'flex',
|
||||||
'git', 'autoconf', 'automake',
|
'git', 'autoconf', 'automake',
|
||||||
'tar', 'unzip', 'gzip',
|
'tar', 'unzip', 'gzip',
|
||||||
'bzip2', 'cmake', 'gcc',
|
'bzip2', 'cmake', 'gcc',
|
||||||
]
|
],
|
||||||
|
default => [
|
||||||
|
'make', 'bison', 'flex',
|
||||||
|
'git', 'autoconf', 'automake',
|
||||||
|
'tar', 'unzip', 'gzip',
|
||||||
|
'bzip2', 'cmake',
|
||||||
|
],
|
||||||
};
|
};
|
||||||
$missing = [];
|
$missing = [];
|
||||||
foreach ($required as $cmd) {
|
foreach ($required as $cmd) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user