add linux tool check

This commit is contained in:
crazywhalecc
2023-07-17 20:28:08 +08:00
parent 63287dd9c4
commit 8b48cf7f70

View File

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