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