Skip to content

Commit

Permalink
feat(goreleaser): also install completions for AUR package
Browse files Browse the repository at this point in the history
  • Loading branch information
budimanjojo committed Aug 28, 2023
1 parent 8d9a4fd commit 1ed3407
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yaml
@@ -1,3 +1,4 @@
---
project_name: talhelper
builds:
- env:
Expand Down Expand Up @@ -48,6 +49,10 @@ aurs:
install -Dm755 "./{{ .ProjectName }}" "${pkgdir}/usr/bin/{{ .ProjectName }}"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/LICENSE"
# completions
"${pkgdir}/usr/bin/{{ .ProjectName }}" completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/{{ .ProjectName }}"
"${pkgdir}/usr/bin/{{ .ProjectName }}" completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/completions/{{ .ProjectName }}.fish"
"${pkgdir}/usr/bin/{{ .ProjectName }}" completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_{{ .ProjectName }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
Expand Down

0 comments on commit 1ed3407

Please sign in to comment.