mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
use git instead of patching deps.sh
This commit is contained in:
parent
6d60000952
commit
2ebd230a08
@ -558,8 +558,14 @@
|
||||
}
|
||||
},
|
||||
"libjxl": {
|
||||
"type": "ghtar",
|
||||
"repo": "libjxl/libjxl",
|
||||
"type": "git",
|
||||
"url": "https://github.com/libjxl/libjxl",
|
||||
"rev": "main",
|
||||
"submodules": [
|
||||
"third_party/highway",
|
||||
"third_party/sjpeg",
|
||||
"third_party/skcms"
|
||||
],
|
||||
"license": {
|
||||
"type": "file",
|
||||
"path": "LICENSE"
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user