Files
hdk-skeleton/installer/Script.php
李东云 643448e10e fix(install): 恢复了 jenkins.sh
Closes #8

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
2023-10-13 16:03:29 +08:00

36 lines
946 B
PHP
Executable File

<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Installer;
use Composer\Script\Event;
class Script
{
public static function install(Event $event): void
{
$installer = new OptionalPackages($event->getIO(), $event->getComposer());
$installer->io->write('<info>设置可选包</info>');
$installer->setupRuntimeDir();
$installer->removeDevDependencies();
$installer->setupProject();
$installer->installHyperfScript();
$installer->promptForOptionalPackages();
$installer->updateDockerEnv();
$installer->updateJenkinsShell();
$installer->updateRootPackage();
$installer->removeInstallerFromDefinition();
$installer->finalizePackage();
}
}