diff --git a/docs/en/guide/installation.md b/docs/en/guide/installation.md index b8f3e18e..66567981 100644 --- a/docs/en/guide/installation.md +++ b/docs/en/guide/installation.md @@ -27,18 +27,23 @@ Pick the installation method that fits your use case: > Fun fact: `spc` itself is a static PHP binary built with StaticPHP. We use StaticPHP to build StaticPHP's own build tool. -```shell -# Linux x86_64 +::: code-group +```shell [Linux x86_64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc -# Linux arm64 +``` +```shell [Linux arm64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc -# macOS x86_64 (Intel) +``` +```shell [macOS x86_64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc -# macOS arm64 (Apple Silicon) +``` +```shell [macOS arm64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc -# Windows x86_64 (PowerShell) +``` +```powershell [Windows x86_64] curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe ``` +::: On Linux and macOS, mark the binary as executable before running it: diff --git a/docs/zh/guide/installation.md b/docs/zh/guide/installation.md index e404afb5..3f6abe93 100644 --- a/docs/zh/guide/installation.md +++ b/docs/zh/guide/installation.md @@ -27,18 +27,23 @@ spc 无须任何依赖,下载即可运行,支持 Linux、macOS 和 Windows > spc 本身是由 StaticPHP 构建的静态 PHP 二进制,幽默地说:我们用 StaticPHP 构建了 StaticPHP 的构建工具。 -```shell -# Linux x86_64 +::: code-group +```shell [Linux x86_64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc -# Linux arm64 +``` +```shell [Linux arm64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc -# macOS x86_64 (Intel) +``` +```shell [macOS x86_64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc -# macOS arm64 (Apple Silicon) +``` +```shell [macOS arm64] curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc -# Windows x86_64 (PowerShell) +``` +```powershell [Windows x86_64] curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe ``` +::: *nix 系统下载完成后需要赋予可执行权限: