Installing by hand
You may also download a build from the releases page. There are builds for linux-x64, linux-arm64, osx-arm64 (Apple Silicon), osx-x64 and win-x64.
Each kscript-<platform> archive holds kscript and the two libraries desktop windows draw with (libSkiaSharp and libHarfBuzzSharp). Keep the three files in the same folder. Everything except windows works without the libraries:
mkdir kscript && tar -xzf kscript-osx-arm64.tar.gz -C kscript # unpack the archive
xattr -dr com.apple.quarantine kscript # macOS only: the files aren't notarized
./kscript/kscript --version # check it runsThe kscript-runtime-<platform> archives are what kscript compile builds programs from. You don't need them to run kscript.
Building from source
To build kscript yourself, you need the .NET 8 SDK and a C++ toolchain for Native AOT: clang and zlib1g-dev on Linux, Xcode on macOS, or Visual Studio's C++ tools on Windows. Then publish for your platform:
dotnet publish KScriptApp -c Release -r osx-arm64 -p:PublishAot=true -o out