add basic FreeBSD support for utils

This commit is contained in:
crazywhalecc
2023-10-15 13:07:13 +08:00
committed by Jerry Ma
parent a983667b90
commit 84d1c789bd
11 changed files with 422 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class Config
'Windows' => ['-windows', '-win', ''],
'Darwin' => ['-macos', '-unix', ''],
'Linux' => ['-linux', '-unix', ''],
'BSD' => ['-freebsd', '-bsd', '-unix', ''],
default => throw new WrongUsageException('OS ' . PHP_OS_FAMILY . ' is not supported'),
};
foreach ($m_key as $v) {
@@ -98,6 +99,7 @@ class Config
'Windows' => ['-windows', '-win', ''],
'Darwin' => ['-macos', '-unix', ''],
'Linux' => ['-linux', '-unix', ''],
'BSD' => ['-freebsd', '-bsd', '-unix', ''],
default => throw new WrongUsageException('OS ' . PHP_OS_FAMILY . ' is not supported'),
};
foreach ($m_key as $v) {