3.0 KiB
3.0 KiB
Installing glint
Requirements
- Go 1.21 or later (for building from source)
- Any 64-bit Linux, macOS, or Windows system (for pre-built binaries)
Option 1 — Build from source
git clone https://git.k3nny.fr/k3nny/glint
cd glint
go build -o glint ./cmd/glint/...
sudo mv glint /usr/local/bin/
Or with Task:
task build
sudo mv glint /usr/local/bin/
Option 2 — Download a pre-built binary
Pre-built binaries are attached to each release.
| Platform | File |
|---|---|
| Linux x86-64 | glint-vX.Y.Z-linux-amd64 |
| Linux ARM64 | glint-vX.Y.Z-linux-arm64 |
| macOS Intel | glint-vX.Y.Z-darwin-amd64 |
| macOS Apple Silicon | glint-vX.Y.Z-darwin-arm64 |
| Windows x86-64 | glint-vX.Y.Z-windows-amd64.exe |
Linux (amd64)
VERSION=v0.4.0
curl -Lo glint https://git.k3nny.fr/k3nny/glint/releases/download/${VERSION}/glint-${VERSION}-linux-amd64
chmod +x glint
sudo mv glint /usr/local/bin/
Linux (ARM64 — Raspberry Pi 4, AWS Graviton, …)
VERSION=v0.4.0
curl -Lo glint https://git.k3nny.fr/k3nny/glint/releases/download/${VERSION}/glint-${VERSION}-linux-arm64
chmod +x glint
sudo mv glint /usr/local/bin/
macOS (Apple Silicon — M1/M2/M3)
VERSION=v0.4.0
curl -Lo glint https://git.k3nny.fr/k3nny/glint/releases/download/${VERSION}/glint-${VERSION}-darwin-arm64
chmod +x glint
sudo mv glint /usr/local/bin/
macOS (Intel)
VERSION=v0.4.0
curl -Lo glint https://git.k3nny.fr/k3nny/glint/releases/download/${VERSION}/glint-${VERSION}-darwin-amd64
chmod +x glint
sudo mv glint /usr/local/bin/
Verify the installation
glint --version
Option 3 — Homebrew (macOS and Linux)
A Homebrew tap is available at k3nny/glint.
First-time setup: create a GitHub repository named
homebrew-glintunder your account and copyFormula/glint.rbinto it. Users then install via the tap as shown below.
brew tap k3nny/glint https://github.com/k3nny/homebrew-glint
brew install glint
To upgrade:
brew upgrade glint
The formula builds glint from source using Go, which Homebrew provides automatically as a build dependency. No pre-built binary download is needed.
Updating the formula on a new release
After tagging a new release, update Formula/glint.rb:
- Compute the tarball checksum:
curl -sL https://git.k3nny.fr/k3nny/glint/archive/vX.Y.Z.tar.gz | sha256sum - Update
urlandsha256in the formula. - Commit and push to
homebrew-glint.
Option 4 — Go install
If you already have Go 1.21+:
go install git.k3nny.fr/k3nny/glint/cmd/glint@latest
The binary is placed in $(go env GOPATH)/bin/. Add that directory to your
PATH if it is not already there:
export PATH="$PATH:$(go env GOPATH)/bin"
Integrations
For editor and CI integrations (pre-commit hook, GitLab CI component, GitHub Actions, VS Code extension) see README.md.