forked from teest114514/chatlog_alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
58 lines (51 loc) · 974 Bytes
/
.goreleaser.yaml
File metadata and controls
58 lines (51 loc) · 974 Bytes
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
# GoReleaser v2 配置
version: 2
before:
hooks:
- go mod tidy
builds:
- id: chatlog
binary: chatlog
ldflags:
- -s -w -X github.com/sjzar/chatlog/pkg/version.Version={{.Version}}
env:
- CGO_ENABLED=1
goos:
- windows
goarch:
- amd64
overrides:
- goos: windows
goarch: amd64
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
upx:
- enabled: true
goos: [windows]
goarch: [amd64]
compress: best
lzma: true
archives:
- id: default
formats: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
files:
- LICENSE
- README.md
- id: binary
formats: binary
name_template: "{{ .Binary }}"
checksum:
name_template: 'checksums.txt'
algorithm: sha256
# 配置 GitHub Release
release:
draft: false
prerelease: auto
mode: replace