Skip to content

Commit ca8a28a

Browse files
committed
Group shell command
1 parent 8e3e790 commit ca8a28a

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

‎docs/en/guide/installation.md‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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]
3232
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
33-
# Linux arm64
33+
```
34+
```shell [Linux arm64]
3435
curl -#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]
3638
curl -#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]
3841
curl -#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]
4044
curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe
4145
```
46+
:::
4247

4348
On Linux and macOS, mark the binary as executable before running it:
4449

‎docs/zh/guide/installation.md‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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]
3232
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
33-
# Linux arm64
33+
```
34+
```shell [Linux arm64]
3435
curl -#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]
3638
curl -#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]
3841
curl -#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]
4044
curl.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

0 commit comments

Comments
 (0)