Add completion files to makefile and goreleaser
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
c9bc1e7fc3
commit
eb4e2281fa
|
@ -39,6 +39,11 @@ nfpms:
|
||||||
- lure
|
- lure
|
||||||
conflicts:
|
conflicts:
|
||||||
- lure
|
- lure
|
||||||
|
contents:
|
||||||
|
- src: scripts/completion/bash
|
||||||
|
dst: /usr/share/bash-completion/completions/lure
|
||||||
|
- src: scripts/completion/zsh
|
||||||
|
dst: /usr/share/zsh/site-functions/_lure
|
||||||
aurs:
|
aurs:
|
||||||
- name: lure-bin
|
- name: lure-bin
|
||||||
homepage: 'https://gitea.arsenm.dev/Arsen6331/lure'
|
homepage: 'https://gitea.arsenm.dev/Arsen6331/lure'
|
||||||
|
@ -57,7 +62,11 @@ aurs:
|
||||||
- pacman
|
- pacman
|
||||||
package: |-
|
package: |-
|
||||||
# binaries
|
# binaries
|
||||||
install -Dm755 "./lure" "${pkgdir}/usr/bin/lure"
|
install -Dm755 ./lure "${pkgdir}/usr/bin/lure"
|
||||||
|
|
||||||
|
# completions
|
||||||
|
install -Dm755 ./scripts/completion/bash /usr/share/bash-completion/completions/lure
|
||||||
|
install -Dm755 ./scripts/completion/zsh /usr/share/zsh/site-functions/_lure
|
||||||
release:
|
release:
|
||||||
gitea:
|
gitea:
|
||||||
owner: Arsen6331
|
owner: Arsen6331
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
lure: version.txt
|
lure: version.txt
|
||||||
go build
|
go build
|
||||||
|
|
||||||
|
@ -5,12 +7,14 @@ clean:
|
||||||
rm -f lure
|
rm -f lure
|
||||||
|
|
||||||
install: lure
|
install: lure
|
||||||
sudo install -Dm755 lure /usr/local/bin/lure
|
install -Dm755 lure $(DESTDIR)$(PREFIX)/bin/lure
|
||||||
|
install -Dm755 scripts/completion/bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/lure
|
||||||
|
install -Dm755 scripts/completion/zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_lure
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f /usr/local/bin/lure
|
rm -f /usr/local/bin/lure
|
||||||
|
|
||||||
version.txt:
|
version.txt:
|
||||||
go generate
|
go generate ./...
|
||||||
|
|
||||||
.PHONY: install clean uninstall
|
.PHONY: install clean uninstall
|
Loading…
Reference in New Issue