mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
Refactor package stage handling and update class structures for improved flexibility
This commit is contained in:
@@ -38,13 +38,6 @@ class ZigCheck
|
||||
#[FixItem('install-zig')]
|
||||
public function installZig(): bool
|
||||
{
|
||||
$arch = arch2gnu(php_uname('m'));
|
||||
$os = match (PHP_OS_FAMILY) {
|
||||
'Windows' => 'win',
|
||||
'Darwin' => 'macos',
|
||||
'BSD' => 'freebsd',
|
||||
default => 'linux',
|
||||
};
|
||||
$installer = new PackageInstaller();
|
||||
$installer->addInstallPackage('zig');
|
||||
$installer->run(false);
|
||||
|
||||
Reference in New Issue
Block a user