mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix upx linux build
This commit is contained in:
parent
097ecd3fb0
commit
905e080770
@ -257,12 +257,12 @@ class LinuxBuilder extends UnixBuilderBase
|
|||||||
->exec('sed -i "s|//lib|/lib|g" Makefile')
|
->exec('sed -i "s|//lib|/lib|g" Makefile')
|
||||||
->exec("make -j{$this->concurrency} {$vars} cli");
|
->exec("make -j{$this->concurrency} {$vars} cli");
|
||||||
|
|
||||||
if (!$this->getOption('no-strip', false)) {
|
if ($this->getOption('with-upx-pack')) {
|
||||||
shell()->cd(SOURCE_PATH . '/php-src/sapi/cli')->exec('strip --strip-all php');
|
|
||||||
} elseif ($this->getOption('with-upx-pack')) {
|
|
||||||
shell()->cd(SOURCE_PATH . '/php-src/sapi/cli')
|
shell()->cd(SOURCE_PATH . '/php-src/sapi/cli')
|
||||||
->exec('strip --strip-all php')
|
->exec('strip --strip-all php')
|
||||||
->exec($this->getOption('upx-exec') . ' --best php');
|
->exec($this->getOption('upx-exec') . ' --best php');
|
||||||
|
} elseif (!$this->getOption('no-strip', false)) {
|
||||||
|
shell()->cd(SOURCE_PATH . '/php-src/sapi/cli')->exec('strip --strip-all php');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->deployBinary(BUILD_TARGET_CLI);
|
$this->deployBinary(BUILD_TARGET_CLI);
|
||||||
@ -312,14 +312,13 @@ class LinuxBuilder extends UnixBuilderBase
|
|||||||
->exec('sed -i "s|//lib|/lib|g" Makefile')
|
->exec('sed -i "s|//lib|/lib|g" Makefile')
|
||||||
->exec("make -j{$this->concurrency} {$vars} fpm");
|
->exec("make -j{$this->concurrency} {$vars} fpm");
|
||||||
|
|
||||||
if (!$this->getOption('no-strip', false)) {
|
if ($this->getOption('with-upx-pack')) {
|
||||||
shell()->cd(SOURCE_PATH . '/php-src/sapi/fpm')->exec('strip --strip-all php-fpm');
|
|
||||||
} elseif ($this->getOption('with-upx-pack')) {
|
|
||||||
shell()->cd(SOURCE_PATH . '/php-src/sapi/fpm')
|
shell()->cd(SOURCE_PATH . '/php-src/sapi/fpm')
|
||||||
->exec('strip --strip-all php-fpm')
|
->exec('strip --strip-all php-fpm')
|
||||||
->exec($this->getOption('upx-exec') . ' --best php-fpm');
|
->exec($this->getOption('upx-exec') . ' --best php-fpm');
|
||||||
|
} elseif (!$this->getOption('no-strip', false)) {
|
||||||
|
shell()->cd(SOURCE_PATH . '/php-src/sapi/fpm')->exec('strip --strip-all php-fpm');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->deployBinary(BUILD_TARGET_FPM);
|
$this->deployBinary(BUILD_TARGET_FPM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user