build: support pkg managers installation (#87)

closes #71, #84, #86
- AUR
- Homebrew
- Nix
- Debian (.deb)
- RPM (.rpm)
- Aqua
- ASDF

This is my first time doing this, so there might be mistakes. If you
can't download it through any pkg manager, please leave a comment or
open an issue

---------

Co-authored-by: use-the-fork <23747916+use-the-fork@users.noreply.github.com>
This commit is contained in:
VERSE
2026-07-31 17:16:31 +07:00
committed by GitHub
co-authored by use-the-fork
parent e9e50c7dea
commit e09f4609f6
16 changed files with 519 additions and 140 deletions
+92
View File
@@ -0,0 +1,92 @@
version: 2
project_name: iris
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/versenilvis/iris/root.Version={{.Version}}
flags:
- -trimpath
main: ./cmd/iris
binary: iris
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
extra_files:
- glob: ./iris-*-vendor.tar.gz
- glob: ./iris-*-vendor.tar.gz.sha256
footer: |
## Update
```bash
iris update
```
# AUR
aurs:
- name: iris-bin
package: |-
install -Dm755 "./iris" "${pkgdir}/usr/bin/iris"
install: "scripts/aur.install"
homepage: "https://github.com/versenilvis/iris"
description: "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool"
maintainers:
- "VERSE <sunnyone0901@gmail.com>"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/iris.git"
commit_author:
name: "goreleaserbot"
email: "bot@goreleaser.com"
commit_msg_template: "AUR release {{ .Tag }}"
provides:
- iris
conflicts:
- iris-bin
# Homebrew
brews:
- repository:
owner: versenilvis
name: homebrew-iris
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Formula
homepage: "https://github.com/versenilvis/iris"
description: "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool"
license: "MIT"
caveats: |
To completely remove IRIS configurations and shell hooks,
please run 'iris uninstall' BEFORE removing this package, or manually
clean up ~/.config/iris and your shell RC files (e.g. ~/.zshrc).
test: |
system "#{bin}/iris", "--help"
# Debian/RPM
nfpms:
- id: iris
package_name: iris
vendor: "versenilvis"
homepage: "https://github.com/versenilvis/iris"
maintainer: "VERSE <sunnyone0901@gmail.com>"
description: "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool"
license: "MIT"
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
scripts:
prerm: "scripts/prerm.sh"
formats:
- deb
- rpm
bindir: /usr/bin