@@ -4,6 +4,10 @@ version: 2
5project_name: crush
5project_name: crush
9+ url: charmbracelet/meta/main/notarize.yaml
8 mod_timestamp: "{{ .CommitTimestamp }}"
12 mod_timestamp: "{{ .CommitTimestamp }}"
9 license: "MIT"
13 license: "MIT"
@@ -12,6 +16,29 @@ metadata:
12 maintainers:
16 maintainers:
13 - "kujtimiihoxha <kujtim@charm.sh>"
17 - "kujtimiihoxha <kujtim@charm.sh>"
20+ publish_release: true
21+ keep_single_release: true
22+ version_template: "{{ incminor .Version }}-nightly"
25+ version_template: "0.0.0-{{ .Timestamp }}"
34+ - sh -c 'go run . completion bash >./completions/crush.bash'
35+ - sh -c 'go run . completion zsh >./completions/crush.zsh'
36+ - sh -c 'go run . completion fish >./completions/crush.fish'
37+ - sh -c 'go run . man | gzip -c >./manpages/crush.1.gz'
17 - CGO_ENABLED=0
44 - CGO_ENABLED=0
@@ -24,19 +51,22 @@ builds:
26 - -s -w -X github.com/charmbracelet/crush/internal/version.Version={{.Version}}
53 - -s -w -X github.com/charmbracelet/crush/internal/version.Version={{.Version}}
31− name_template: >-
56+ - name_template: >-
33− {{- if eq .Os "darwin" }}mac-
58+ {{- .Version }}_
34− {{- else if eq .Os "windows" }}windows-
59+ {{- title .Os }}_
35− {{- else if eq .Os "linux" }}linux-{{end}}
36 {{- if eq .Arch "amd64" }}x86_64
60 {{- if eq .Arch "amd64" }}x86_64
37− {{- else if eq .Arch "#86" }}i386
61+ {{- else if eq .Arch "386" }}i386
38 {{- else }}{{ .Arch }}{{ end }}
62 {{- else }}{{ .Arch }}{{ end }}
39− {{- if .Arm }}v{{ .Arm }}{{ end }}
63+ {{- with .Arm}}v{{ . }}{{ end }}
64+ wrap_in_directory: true
40 format_overrides:
70 format_overrides:
41 - goos: windows
71 - goos: windows
42 formats: [zip]
72 formats: [zip]
@@ -44,18 +74,36 @@ archives:
45 name_template: "checksums.txt"
75 name_template: "checksums.txt"
48− version_template: "0.0.0-{{ .Timestamp }}"
51 - private_key: "{{ .Env.AUR_KEY }}"
78 - private_key: "{{ .Env.AUR_KEY }}"
52− git_url: "ssh://aur@aur.archlinux.org/charmbracelet-bin.git"
79+ git_url: "ssh://aur@aur.archlinux.org/crush-bin.git"
55 conflicts:
82 conflicts:
57 package: |-
84 package: |-
85+ cd "${srcdir}/crush_${pkgver}_Linux_${CARCH}"
58− install -Dm755 ./crush "${pkgdir}/usr/bin/crush"
87+ install -Dm755 "./crush" "${pkgdir}/usr/bin/crush"
89+ mkdir -p "${pkgdir}/usr/share/licenses/crush/"
90+ install -Dm644 ./LICENSE* "${pkgdir}/usr/share/licenses/crush/"
92+ mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
93+ mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
94+ mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
95+ install -Dm644 "./completions/crush.bash" "${pkgdir}/usr/share/bash-completion/completions/crush"
96+ install -Dm644 "./completions/crush.zsh" "${pkgdir}/usr/share/zsh/site-functions/_crush"
97+ install -Dm644 "./completions/crush.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/crush.fish"
99+ install -Dm644 "./manpages/crush.1.gz" "${pkgdir}/usr/share/man/man1/crush.1.gz"
101+ mkdir -pv "${pkgdir}/usr/share/doc/crush/"
102+ install -Dm644 README* "${pkgdir}/usr/share/doc/crush/"
105+ - account: "{{ with .Env.FURY_TOKEN }}charmcli{{ else }}{{ end }}"
106+ secret_name: FURY_TOKEN
60homebrew_casks:
108homebrew_casks:
61 - repository:
109 - repository:
@@ -66,10 +114,16 @@ nfpms:
66 - formats:
114 - formats:
69− file_name_template: >-
117+ file_name_template: "{{ .ConventionalFileName }}"
70− {{ .ProjectName }}-
118+ contents:
71− {{- if eq .Os "darwin" }}mac
119+ - src: ./completions/crush.bash
72− {{- else }}{{ .Os }}{{ end }}-{{ .Arch }}
120+ dst: /etc/bash_completion.d/crush
121+ - src: ./completions/crush.fish
122+ dst: /usr/share/fish/vendor_completions.d/crush.fish
123+ - src: ./completions/crush.zsh
124+ dst: /usr/share/zsh/site-functions/_crush
125+ - src: ./manpages/crush.1.gz
126+ dst: /usr/share/man/man1/crush.1.gz
74changelog:
128changelog:
75 sort: asc
129 sort: asc