-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
63 lines (63 loc) · 1.62 KB
/
.goreleaser.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
project_name: pdf2docx
release:
github:
owner: zinderic
name: pdf2docx
name_template: '{{.Tag}}'
scoop:
name: pdf2docx
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
goamd64: v1
builds:
- id: pdf2docx
goos:
- windows
goarch:
- amd64
targets:
- "windows_amd64"
env:
- CGO_ENABLED=1
- CC="x86_64-w64-mingw32-gcc"
- CXX="x86_64-w64-mingw32-g++"
dir: .
main: ./cmd
binary: pdf2docx
builder: go
gobinary: go
command: build
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
archives:
- id: default
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: binary
files:
- src: license*
- src: LICENSE*
- src: readme*
- src: README*
- src: changelog*
- src: CHANGELOG*
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: binary
gomod:
gobinary: go
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com