-
Notifications
You must be signed in to change notification settings - Fork 19
/
.goreleaser.yml
81 lines (74 loc) · 2.29 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: 2
project_name: git-spice
builds:
- env:
- CGO_ENABLED=0
main: .
binary: gs
goos: [darwin, linux, windows]
goarch: [amd64, arm64, arm]
goarm: [5, 6, 7]
ldflags: '-s -w -X main._version={{.Version}}'
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
flags:
- -trimpath
archives:
- format: tar.gz
# uname compatible archive name.
name_template: >-
{{- .ProjectName }}.
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if (and (eq .Arch "arm64") (eq .Os "linux")) }}aarch64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
release:
prerelease: auto
aurs:
- name: git-spice-bin
homepage: "https://abhinav.github.io/git-spice/"
description: "A tool for stacking Git branches."
maintainers:
- 'Abhinav Gupta <mail@abhinavg.net>'
license: "GPL-3.0-or-later"
git_url: "ssh://aur@aur.archlinux.org/git-spice-bin.git"
skip_upload: auto
private_key: '{{ .Env.AUR_KEY }}'
conflicts:
- git-spice # no non-bin package exists yet, but just in case
- ghostscript # ghostscript also provides a 'gs' binary
package: |-
install -Dm755 "./gs" "${pkgdir}/usr/bin/gs"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/git-spice/LICENSE"
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/git-spice/README.md"
install -Dm644 "./CHANGELOG.md" "${pkgdir}/usr/share/doc/git-spice/CHANGELOG.md"
commit_author:
name: Abhinav Gupta
email: mail@abhinavg.net
brews:
- repository:
owner: abhinav
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_msg_template: "{{ .ProjectName }}: Update formula to {{ .Tag }}"
commit_author:
name: Abhinav Gupta
email: mail@abhinavg.net
homepage: https://abhinav.github.io/git-spice/
description: "A tool for stacking Git branches."
license: "GPL-3.0-or-later"
skip_upload: auto
install: |
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
test: |
system "#{bin}/gs --version"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incminor .Tag }}-dev"