adjust micro's phar patch execution location

This commit is contained in:
crazywhalecc
2023-09-23 17:00:42 +08:00
committed by Jerry Ma
parent 6ed9749732
commit db8aa15677
2 changed files with 8 additions and 8 deletions

View File

@@ -229,10 +229,6 @@ class LinuxBuilder extends BuilderBase
if (php_uname('m') === $this->getOption('arch')) { if (php_uname('m') === $this->getOption('arch')) {
$this->sanityCheck($build_target); $this->sanityCheck($build_target);
} }
if ($this->phar_patched) {
SourcePatcher::patchMicro(['phar'], true);
}
} }
/** /**
@@ -290,6 +286,10 @@ class LinuxBuilder extends BuilderBase
} }
$this->deployBinary(BUILD_TARGET_MICRO); $this->deployBinary(BUILD_TARGET_MICRO);
if ($this->phar_patched) {
SourcePatcher::patchMicro(['phar'], true);
}
} }
/** /**

View File

@@ -201,10 +201,6 @@ class MacOSBuilder extends BuilderBase
if (php_uname('m') === $this->getOption('arch')) { if (php_uname('m') === $this->getOption('arch')) {
$this->sanityCheck($build_target); $this->sanityCheck($build_target);
} }
if ($this->phar_patched) {
SourcePatcher::patchMicro(['phar'], true);
}
} }
/** /**
@@ -258,6 +254,10 @@ class MacOSBuilder extends BuilderBase
shell()->cd(SOURCE_PATH . '/php-src') shell()->cd(SOURCE_PATH . '/php-src')
->exec("make -j{$this->concurrency} {$vars} micro"); ->exec("make -j{$this->concurrency} {$vars} micro");
$this->deployBinary(BUILD_TARGET_MICRO); $this->deployBinary(BUILD_TARGET_MICRO);
if ($this->phar_patched) {
SourcePatcher::patchMicro(['phar'], true);
}
} }
/** /**