mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
suggestions
This commit is contained in:
parent
40d602c82e
commit
dfac385d21
@ -512,7 +512,7 @@ Here is an example of installing the tool:
|
|||||||
|
|
||||||
- Download and install UPX (Linux and Windows only): `bin/spc install-pkg upx`
|
- Download and install UPX (Linux and Windows only): `bin/spc install-pkg upx`
|
||||||
- Download and install nasm (Windows only): `bin/spc install-pkg nasm`
|
- Download and install nasm (Windows only): `bin/spc install-pkg nasm`
|
||||||
- Download and install go-mod-frankenphp: `bin/spc install-pkg go-mod-frankenphp`
|
- Download and install go-xcaddy: `bin/spc install-pkg go-xcaddy`
|
||||||
|
|
||||||
## Command - del-download
|
## Command - del-download
|
||||||
|
|
||||||
|
|||||||
@ -460,7 +460,7 @@ bin/spc dev:sort-config ext
|
|||||||
|
|
||||||
- 下载安装 UPX(仅限 Linux 和 Windows): `bin/spc install-pkg upx`
|
- 下载安装 UPX(仅限 Linux 和 Windows): `bin/spc install-pkg upx`
|
||||||
- 下载安装 nasm(仅限 Windows): `bin/spc install-pkg nasm`
|
- 下载安装 nasm(仅限 Windows): `bin/spc install-pkg nasm`
|
||||||
- 下载安装 go-mod-frankenphp: `bin/spc install-pkg go-mod-frankenphp`
|
- 下载安装 go-xcaddy: `bin/spc install-pkg go-xcaddy`
|
||||||
|
|
||||||
## 命令 del-download - 删除已下载的资源
|
## 命令 del-download - 删除已下载的资源
|
||||||
|
|
||||||
|
|||||||
@ -317,7 +317,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
$nowatcher = $this->getLib('watcher') === null ? ',nowatcher' : '';
|
$nowatcher = $this->getLib('watcher') === null ? ',nowatcher' : '';
|
||||||
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
|
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
|
||||||
// make it possible to build from a different frankenphp directory!
|
// make it possible to build from a different frankenphp directory!
|
||||||
if (!str_contains($xcaddyModules, '--with github.com/php/frankenphp')) {
|
if (!str_contains($xcaddyModules, '--with github.com/dunglas/frankenphp')) {
|
||||||
$xcaddyModules = '--with github.com/dunglas/frankenphp ' . $xcaddyModules;
|
$xcaddyModules = '--with github.com/dunglas/frankenphp ' . $xcaddyModules;
|
||||||
}
|
}
|
||||||
if ($this->getLib('brotli') === null && str_contains($xcaddyModules, '--with github.com/dunglas/caddy-cbrotli')) {
|
if ($this->getLib('brotli') === null && str_contains($xcaddyModules, '--with github.com/dunglas/caddy-cbrotli')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user