add linux tool check

This commit is contained in:
crazywhalecc 2023-07-17 20:28:08 +08:00
parent 63287dd9c4
commit 8b48cf7f70
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -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) {