Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 下载源码包(all-deps.zip) 集合 hash 签名 #768

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sapi/download-box/download-box-get-archive-from-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ test -d ${__PROJECT__}/var/download-box/ || mkdir -p ${__PROJECT__}/var/download

cd ${__PROJECT__}/var/download-box/

ALL_DEPS_HASH="5fa1485c2408f05cbc548712917e6dbb8ecd5a631b558d6d512d4a6671f071e5"
ALL_DEPS_HASH="ed854e2116ff663404250152af16d850ed69253079c65ee790538c51a09166dd"

DOMAIN='https://github.com/swoole/swoole-cli/releases/download/v5.1.3.0/'
DOMAIN='https://github.com/swoole/swoole-cli/releases/download/v5.1.4.0/'
while [ $# -gt 0 ]; do
case "$1" in
--mirror)
Expand Down
43 changes: 7 additions & 36 deletions sapi/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 快速初始化构建环境

## 一个脚本执行整个流程
## 一个脚本执行整个构建流程

> 定制 build-release.sh 即可开始构建

```bash
cp build-release-example.sh build-release.sh

cp build-release-example.sh build-release.sh

bash build-release.sh

Expand All @@ -19,7 +19,7 @@
# 准备 PHP 运行时
bash sapi/quickstart/setup-php-runtime.sh

# 准备PHP 运行时 使用代理 (需提前准备好代理)
# 准备PHP 运行时 使用代理
bash sapi/quickstart/setup-php-runtime.sh --proxy http://192.168.3.26:8015

# 准备PHP 运行时 使用镜像 (镜像源 https://www.swoole.com/download)
Expand All @@ -34,12 +34,10 @@ composer -v

```

## 准备依赖库源码,来自镜像

> 可能部分源码包没有及时更新 ,请提 issues
> 缺失的部分,下一步执行时会自动到源站下载
## 准备依赖库源码

```bash
# 源码来源 https://github.com/swoole/swoole-cli/releases/download/${TAG}/all-deps.zip

bash sapi/download-box/download-box-get-archive-from-server.sh

Expand All @@ -51,35 +49,7 @@ bash sapi/download-box/download-box-get-archive-from-server.sh

```bash

git submodule update --init

```

## 准备构建脚本(会自动下载依赖库源码包)

> [ 构建参数选项 ](../../docs/options.md)

```bash

# 准备 php 运行环境
# macos
alias php='php -d curl.cainfo=/etc/ssl/cert.pem -d openssl.cafile=/etc/ssl/cert.pem'
# linux
alias php='php -d curl.cainfo=/etc/ssl/certs/ca-certificates.crt -d openssl.cafile=/etc/ssl/certs/ca-certificates.crt'


composer update --optimize-autoloader

php prepare.php +inotify +apcu +ds +xlswriter +ssh2 --with-swoole-pgsql=1

# 使用镜像下载依赖库源码
php prepare.php +inotify +apcu +ds +xlswriter +ssh2 --with-swoole-pgsql=1 --with-download-mirror-url=https://swoole-cli.jingjingxyk.com/

# 不启用用 mysqli soap
# php prepare.php +inotify +apcu +ds -mysqli -soap

# macos
# php prepare.php +inotify +apcu +ds --without-docker=1
git submodule update --init -f

```

Expand All @@ -88,6 +58,7 @@ php prepare.php +inotify +apcu +ds +xlswriter +ssh2 --with-swoole-pgsql=1 --wit
1. [ linux 快速启动 容器 构建环环境 ](linux/README.md)
1. [ windows cygwin 快速启动 构建环环境 ](windows/README.md)
1. [ macos 快速启动 构建环环境 ](macos/README.md)
1. [ 构建选项 ](../../docs/options.md)

## 构建依赖库 、构建swoole 、打包

Expand Down
2 changes: 2 additions & 0 deletions sapi/src/builder/extension/imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
->withDependentLibraries('imagemagick')
);
};

# 构建 imagick 扩展时 会自动下载 https://github.com/nikic/PHP-Parser 源码
2 changes: 2 additions & 0 deletions setup-swoole-cli-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ opcache.enable_cli=On
opcache.jit=1225
opcache.jit_buffer_size=128M

; jit 更多配置参考 https://mp.weixin.qq.com/s/Tm-6XVGQSlz0vDENLB3ylA

expose_php=Off

EOF
Expand Down
Loading