-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser-linux.yaml
43 lines (42 loc) · 1.03 KB
/
.goreleaser-linux.yaml
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
# https://goreleaser.com
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=1
gcflags:
- -trimpath
ldflags:
- -s -w
- -X github.com/yhyj/{{ .ProjectName }}/general.GitCommitHash={{.Commit}}
- -X github.com/yhyj/{{ .ProjectName }}/general.BuildTime={{.Timestamp}}
- -X github.com/yhyj/{{ .ProjectName }}/general.BuildBy=goreleaser
goos:
- linux
goarch:
- amd64
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- "CHANGELOG*"
- "changelog*"
- "LICENSE*"
- "license*"
- "README*"
- "readme*"
- "resources/applications/*"
- "resources/pixmaps/*"
format_overrides:
- goos: windows
format: zip
snapshot:
name_template: "{{ incpatch .Version }}-next"
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json