File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,18 +27,23 @@ Pick the installation method that fits your use case:
2727
2828> Fun fact: ` spc ` itself is a static PHP binary built with StaticPHP. We use StaticPHP to build StaticPHP's own build tool.
2929
30- ``` shell
31- # Linux x86_64
30+ ::: code-group
31+ ``` shell [ Linux x86_64]
3232curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
33- # Linux arm64
33+ ```
34+ ``` shell [Linux arm64]
3435curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc
35- # macOS x86_64 (Intel)
36+ ```
37+ ``` shell [macOS x86_64]
3638curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc
37- # macOS arm64 (Apple Silicon)
39+ ```
40+ ``` shell [macOS arm64]
3841curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc
39- # Windows x86_64 (PowerShell)
42+ ```
43+ ``` powershell [Windows x86_64]
4044curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe
4145```
46+ :::
4247
4348On Linux and macOS, mark the binary as executable before running it:
4449
Original file line number Diff line number Diff line change @@ -27,18 +27,23 @@ spc 无须任何依赖,下载即可运行,支持 Linux、macOS 和 Windows
2727
2828> spc 本身是由 StaticPHP 构建的静态 PHP 二进制,幽默地说:我们用 StaticPHP 构建了 StaticPHP 的构建工具。
2929
30- ``` shell
31- # Linux x86_64
30+ ::: code-group
31+ ``` shell [ Linux x86_64]
3232curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
33- # Linux arm64
33+ ```
34+ ``` shell [Linux arm64]
3435curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc
35- # macOS x86_64 (Intel)
36+ ```
37+ ``` shell [macOS x86_64]
3638curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc
37- # macOS arm64 (Apple Silicon)
39+ ```
40+ ``` shell [macOS arm64]
3841curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc
39- # Windows x86_64 (PowerShell)
42+ ```
43+ ``` powershell [Windows x86_64]
4044curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe
4145```
46+ :::
4247
4348* nix 系统下载完成后需要赋予可执行权限:
4449
You can’t perform that action at this time.
0 commit comments