mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 15:25:41 +08:00
use git instead of patching deps.sh
This commit is contained in:
@@ -10,18 +10,6 @@ use SPC\util\SPCTarget;
|
||||
|
||||
trait libjxl
|
||||
{
|
||||
public function patchBeforeBuild(): bool
|
||||
{
|
||||
FileSystem::replaceFileStr(
|
||||
$this->source_dir . '/deps.sh',
|
||||
['return 0', 'download_github third_party/brotli', 'download_github third_party/zlib', 'download_github third_party/libpng'],
|
||||
['# return 0', '# download_github third_party/brotli', '# download_github third_party/zlib', '# download_github third_party/libpng'],
|
||||
);
|
||||
shell()->cd($this->source_dir)
|
||||
->exec('./deps.sh');
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function build(): void
|
||||
{
|
||||
UnixCMakeExecutor::create($this)
|
||||
|
||||
Reference in New Issue
Block a user