mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Add --by-extensions for README
This commit is contained in:
parent
ed52ec9ee1
commit
5e0cccfe3d
@ -124,6 +124,8 @@ chmod +x bin/spc
|
||||
./bin/spc doctor
|
||||
# 拉取所有依赖库
|
||||
./bin/spc fetch --all
|
||||
# 只拉取编译指定扩展需要的所有依赖
|
||||
./bin/spc download --by-extensions=openssl,pcntl,mbstring,pdo_sqlite
|
||||
# 构建包含 bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl 扩展的 php-cli 和 micro.sfx
|
||||
./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl" --build-cli --build-micro
|
||||
```
|
||||
|
||||
@ -133,7 +133,9 @@ Basic usage for building php and micro with some extensions:
|
||||
# Check system tool dependencies, fix them automatically
|
||||
./bin/spc doctor
|
||||
# fetch all libraries
|
||||
./bin/spc fetch --all
|
||||
./bin/spc download --all
|
||||
# only fetch necessary sources by needed extensions
|
||||
./bin/spc download --by-extensions=openssl,pcntl,mbstring,pdo_sqlite
|
||||
# with bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl extension, build both CLI and phpmicro SAPI
|
||||
./bin/spc build bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl --build-cli --build-micro
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user