Installation
Prerequisites
Section titled “Prerequisites”Odyn shells out to git and builds with the Odin compiler, so you need both on
your PATH:
- git
- The Odin compiler, preferably the latest version
Notice
Section titled “Notice”If you’re currently using or have the legacy Rust version of Odyn, please remove, backup, or move the binary as this process will likely rewrite or fail at the presence of an existing Odyn binary in your installation path.
Installer script
Section titled “Installer script”The installer fetches the source, builds it, and asks where to put the binary (system-wide, per-user, or a custom path). Download it and run it (it is interactive, so run it from a file rather than piping it into a shell):
curl -fsSLO https://razkar.codeberg.page/odyn/install.shsh install.shrm install.shiwr https://razkar.codeberg.page/odyn/install.ps1 -OutFile install.ps1.\install.ps1Remove-Item install.ps1Environment variables
Section titled “Environment variables”The installer scripts respect TAG and NIGHTLY for non-interactive builds. With neither set, the latest tag from the remote is fetched and built automatically.
TAG=<tag>sets a specific tag (e.g.TAG=v0.1.0)NIGHTLY=1builds from the default branch
build.sh supports PREFIX=<dir> to set the install prefix (default /usr/local).
Example usage:
# Install a tagged release non-interactivelyTAG=v0.1.0 sh install.sh
# Build from local source and install to a custom prefixPREFIX=$HOME/.local ./build.shConfirm it worked:
odyn --versionAlternative sources
Section titled “Alternative sources”While the installer script already git-clones and builds on its own, you can have other options, like this repository’s Makefile or build.sh.
git clone https://codeberg.org/razkar/odyn.gitcd odynPick either ONE:
# Build and install with the Makefilemake install# Install with the build scriptPREFIX=$HOME/.local ./build.sh# Or, just build the binarymake build# or: odin build . -collection:deps=deps -out:odyn