mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
patched this in ext-spx before, do it here instead
This commit is contained in:
parent
5382362168
commit
2a5915f4b6
@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace SPC\builder\extension;
|
||||
|
||||
use SPC\builder\Extension;
|
||||
use SPC\store\FileSystem;
|
||||
use SPC\util\CustomExt;
|
||||
|
||||
#[CustomExt('spx')]
|
||||
@ -18,4 +19,14 @@ class spx extends Extension
|
||||
}
|
||||
return $arg;
|
||||
}
|
||||
|
||||
public function patchBeforeConfigure(): bool
|
||||
{
|
||||
FileSystem::replaceFileStr(
|
||||
$this->source_dir . '/Makefile.frag',
|
||||
'@cp -r assets/web-ui/*',
|
||||
'@cp -r ' . $this->source_dir . '/assets/web-ui/*',
|
||||
);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user