Skip to content

Commit 813ab8b

Browse files
fix android architecture in goreleaser.yml
1 parent 6eb5501 commit 813ab8b

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/gh-s
22
/gh-s.exe
3+
/dist

.goreleaser.yml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,52 @@
1+
version: 2
2+
13
before:
24
hooks:
35
- go mod tidy
6+
47
builds:
5-
- env:
8+
- id: default
9+
env:
610
- CGO_ENABLED=0
11+
flags:
12+
- -trimpath
13+
ldflags:
14+
- -s -w
715
goos:
8-
- darwin
916
- linux
17+
- darwin
1018
- windows
11-
- netbsd
1219
- android
20+
- netbsd
21+
goarch:
22+
- amd64
23+
- arm64
24+
ignore:
25+
- goos: android
26+
goarch: amd64
27+
1328
archives:
14-
- name_template: "{{ .Os }}-{{ .Arch }}"
15-
format: binary
29+
- id: default
30+
ids:
31+
- default
32+
formats:
33+
- tar.gz
34+
format_overrides:
35+
- goos: windows
36+
formats:
37+
- zip
38+
name_template: >-
39+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_
40+
{{- if eq .Arch "amd64" }}x86_64
41+
{{- else if eq .Arch "arm64" }}aarch64
42+
{{- else }}{{ .Arch }}{{ end }}
43+
44+
checksum:
45+
name_template: "checksums.txt"
46+
1647
snapshot:
17-
name_template: "{{ .Tag }}-next"
48+
version_template: "{{ .Tag }}-next"
49+
1850
changelog:
1951
use: github-native
52+

0 commit comments

Comments
 (0)