mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Move all interactive input to construct
This commit is contained in:
@@ -107,7 +107,7 @@ class WindowsToolCheck
|
||||
{
|
||||
$installer = new PackageInstaller();
|
||||
$installer->addInstallPackage('strawberry-perl');
|
||||
$installer->run(false);
|
||||
$installer->run(true);
|
||||
GlobalEnvManager::addPathIfNotExists(PKG_ROOT_PATH . '\strawberry-perl');
|
||||
return true;
|
||||
}
|
||||
@@ -116,27 +116,27 @@ class WindowsToolCheck
|
||||
public function installSDK(): bool
|
||||
{
|
||||
FileSystem::removeDir(getenv('PHP_SDK_PATH'));
|
||||
$installer = new PackageInstaller();
|
||||
$installer = new PackageInstaller(interactive: false);
|
||||
$installer->addInstallPackage('php-sdk-binary-tools');
|
||||
$installer->run(false);
|
||||
$installer->run(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
#[FixItem('install-nasm')]
|
||||
public function installNasm(): bool
|
||||
{
|
||||
$installer = new PackageInstaller();
|
||||
$installer = new PackageInstaller(interactive: false);
|
||||
$installer->addInstallPackage('nasm');
|
||||
$installer->run(false);
|
||||
$installer->run(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
#[FixItem('install-vswhere')]
|
||||
public function installVSWhere(): bool
|
||||
{
|
||||
$installer = new PackageInstaller();
|
||||
$installer = new PackageInstaller(interactive: false);
|
||||
$installer->addInstallPackage('vswhere');
|
||||
$installer->run(false);
|
||||
$installer->run(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user