安裝

Linux、macOS 和 Windows 都有自包含版本。

Linux

x64ARM64
Shell
curl --fail --location --show-error https://crystalcode.ink/install.sh | sh

macOS

ARM64

和 Linux 用同一個安裝指令碼。

Shell
curl --fail --location --show-error https://crystalcode.ink/install.sh | sh

Windows

x64

Windows 上需要 Git for Windows,因為 bash 由 Git Bash 提供。

PowerShell
Invoke-RestMethod -Uri https://crystalcode.ink/install.ps1 | Invoke-Expression

開啟一個新終端機,Linux 或 macOS 上執行 crystal,Windows 上執行 CrystalCode。