Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 105e3bc

Browse files
committed
update docs, add tip
1 parent 3c5d88c commit 105e3bc

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

docs/en/guide/manual-build.md

+11
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,17 @@ bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
219219
bin/spc build phar,curl,posix,pcntl,tokenizer --build-micro
220220
```
221221

222+
::: tip
223+
If you need to repeatedly build and debug, you can delete the `buildroot/` and `source/` directories so that you can re-extract and build all you need from the downloaded source code package:
224+
225+
```shell
226+
# remove
227+
rm -rf buildroot source
228+
# build again
229+
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
230+
```
231+
:::
232+
222233
### Debug
223234

224235
If you encounter problems during the compilation process, or want to view each executing shell command,

docs/zh/guide/action-build.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ Action 构建指的是直接使用 GitHub Action 进行编译。
44

55
如果你不想自行编译,可以从本项目现有的 Action 下载 Artifact,也可以从自托管的服务器下载:[进入](https://dl.static-php.dev/static-php-cli/common/)
66

7-
> 自托管的二进制也是由 Action 构建而来,[项目仓库地址](https://github.com/static-php/static-php-cli-hosted),包含的扩展有:
8-
> bcmath,bz2,calendar,ctype,curl,dom,exif,fileinfo,filter,ftp,gd,gmp,iconv,xml,mbstring,mbregex,mysqlnd,openssl,
9-
> pcntl,pdo,pdo_mysql,pdo_sqlite,phar,posix,redis,session,simplexml,soap,sockets,sqlite3,tokenizer,xmlwriter,xmlreader,zlib,zip
7+
> 自托管的二进制也是由 Action 构建而来,[项目仓库地址](https://github.com/static-php/static-php-cli-hosted)
108
119
## 构建方法
1210

docs/zh/guide/manual-build.md

+11
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,17 @@ bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
189189
bin/spc build phar,curl,posix,pcntl,tokenizer --build-micro
190190
```
191191

192+
::: tip
193+
如果你需要重复构建、调试,你可以删除 `buildroot/``source/` 两个目录,这样你可以从已下载的源码压缩包重新解压并构建:
194+
195+
```shell
196+
# remove
197+
rm -rf buildroot source
198+
# build again
199+
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
200+
```
201+
:::
202+
192203
### 调试
193204

194205
如果你在编译过程中遇到了问题,或者想查看每个执行的 shell 命令,可以使用 `--debug` 开启 debug 模式,查看所有终端日志:

0 commit comments

Comments
 (0)