安装

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。