You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .goreleaser.yaml
+74-39Lines changed: 74 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
# GoReleaser v2 configuration
3
3
version: 2
4
4
5
+
project_name: bdcli
6
+
5
7
# Before hook - runs before the build
6
8
before:
7
9
hooks:
@@ -21,41 +23,39 @@ builds:
21
23
goarch:
22
24
- amd64
23
25
- arm64
24
-
- arm
25
-
- '386'
26
-
goarm:
27
-
- '6'
28
-
- '7'
29
-
ignore:
30
-
- goos: darwin
31
-
goarch: '386'
32
-
- goos: darwin
33
-
goarch: arm
34
26
ldflags:
35
27
- -s -w
36
28
- -X main.version={{.Version}}
37
29
- -X main.commit={{.Commit}}
38
30
- -X main.date={{.Date}}
39
31
mod_timestamp: '{{ .CommitTimestamp }}'
40
32
33
+
# Our binaries are small, so we can skip UPX compression
34
+
# to save time and avoid potential issues with antivirus software.
35
+
# upx:
36
+
# - enabled: true
37
+
# compress: best
38
+
# lzma: true
39
+
# brute: true
40
+
41
41
archives:
42
42
- id: default
43
-
format: tar.gz
44
-
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
43
+
formats: ["tar.gz"]
44
+
#name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
45
45
format_overrides:
46
46
- goos: windows
47
-
format: zip
47
+
formats: ["zip"]
48
48
files:
49
49
- LICENSE
50
50
- README.md
51
51
52
52
checksum:
53
-
name_template: 'bdcli_checksums.txt'
54
-
algorithm: sha256
53
+
name_template: "bdcli_checksums.txt"
55
54
56
55
snapshot:
57
56
version_template: "{{ incpatch .Version }}-next"
58
57
58
+
59
59
changelog:
60
60
sort: asc
61
61
use: github
@@ -73,12 +73,10 @@ changelog:
73
73
- title: 'Bug Fixes'
74
74
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
75
75
order: 1
76
-
- title: 'Performance Improvements'
77
-
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
78
-
order: 2
79
76
- title: 'Others'
80
77
order: 999
81
78
79
+
82
80
release:
83
81
draft: true
84
82
replace_existing_draft: true
@@ -88,27 +86,64 @@ release:
88
86
header: |
89
87
## BetterDiscord CLI {{ .Tag }}
90
88
91
-
Install with npm: `npm install -g @betterdiscord/cli@{{ .Version }}`
89
+
Install on Windows with winget: `winget install betterdiscord.cli`
90
+
Install on Mac/Linux with brew: `brew install betterdiscord/tap/bdcli`
0 commit comments