mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
suggestion 2
This commit is contained in:
parent
a643c44ac6
commit
1b6422eed3
@ -12,10 +12,6 @@ trait libjxl
|
|||||||
{
|
{
|
||||||
public function patchBeforeBuild(): bool
|
public function patchBeforeBuild(): bool
|
||||||
{
|
{
|
||||||
$depsContent = file_get_contents($this->source_dir . '/deps.sh');
|
|
||||||
if (str_contains($depsContent, '# return 0')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
$this->source_dir . '/deps.sh',
|
$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'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user