Add --by-extensions for README

This commit is contained in:
crazywhalecc 2023-10-26 20:20:17 +08:00
parent ed52ec9ee1
commit 5e0cccfe3d
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 5 additions and 1 deletions

View File

@ -124,6 +124,8 @@ chmod +x bin/spc
./bin/spc doctor ./bin/spc doctor
# 拉取所有依赖库 # 拉取所有依赖库
./bin/spc fetch --all ./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 # 构建包含 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 ./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl" --build-cli --build-micro
``` ```

View File

@ -133,7 +133,9 @@ Basic usage for building php and micro with some extensions:
# Check system tool dependencies, fix them automatically # Check system tool dependencies, fix them automatically
./bin/spc doctor ./bin/spc doctor
# fetch all libraries # 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 # 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 ./bin/spc build bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl --build-cli --build-micro
``` ```