1. Install
Binary Release
See Releases for some binary packages.
mkdir omnisrv && cd omnisrv
# Also verify sha256sum in production
curl -L https://codeberg.org/NaitLee/omnisrv/releases/download/v0.2.0/omnisrv_amd64-linux_v0.2.0.tar.gz | tar -x
Compile from Source
Install with Go toolchain:
# Executables in $HOME/go/bin
go install codeberg.org/NaitLee/omnisrv@latest
Or manually compile from source:
git clone https://codeberg.org/NaitLee/omnisrv.git
cd omnisrv
sh build.sh # "go build" with extra build flags
See also: Optimized go build
Build Flags
9p: Also buildomnisrv-9p, the 9P server.gohttp: Use net/http instead of fasthttp.nossg: Disable buildingomnisrv-ssg.nounsafe: Replace unsafe usages with safe code.
Example:
go build -tags="9p,nounsafe" -o ./bin ./cmd/...