定制 build-release.sh 即可开始构建
cp build-release-example.sh build-release.sh
bash build-release.sh
# 准备 PHP 运行时
bash sapi/quickstart/setup-php-runtime.sh
# 准备PHP 运行时 使用代理
bash sapi/quickstart/setup-php-runtime.sh --proxy http://192.168.3.26:8015
# 准备PHP 运行时 使用镜像 (镜像源 https://www.swoole.com/download)
bash sapi/quickstart/setup-php-runtime.sh --mirror china
# 容器内准备 PHP 运行时
bash sapi/quickstart/setup-php-runtime-in-docker.sh
# 验证
php -v
composer -v
# 源码来源 https://github.com/swoole/swoole-cli/releases/download/${TAG}/all-deps.zip
bash sapi/download-box/download-box-get-archive-from-server.sh
拉取 swoole-cli 源码时没有拉取子模块,就需要执行这一步
git submodule update --init -f
# 构建所有依赖库
bash make.sh all-library
bash make.sh config
bash make.sh build
bash make.sh archive