-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
185 lines (161 loc) · 5.28 KB
/
Copy path.goreleaser.yaml
File metadata and controls
185 lines (161 loc) · 5.28 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# GoReleaser v2 configuration
version: 2
project_name: bdcli
# Before hook - runs before the build
before:
hooks:
- go mod tidy
- go mod download
- sh ./scripts/completions.sh
builds:
- id: bdcli
binary: bdcli
main: ./main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.date={{.CommitDate}}
mod_timestamp: '{{ .CommitTimestamp }}'
# Our binaries are small, so we can skip UPX compression
# to save time and avoid potential issues with antivirus software.
# upx:
# - enabled: true
# compress: best
# lzma: true
# brute: true
archives:
- formats: ["tar.gz"]
# name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
formats: ["zip"]
builds_info:
mtime: "{{ .CommitDate }}"
files:
- src: README.md
info:
mtime: "{{ .CommitDate }}"
- src: LICENSE
info:
mtime: "{{ .CommitDate }}"
- src: completions/*
info:
mtime: "{{ .CommitDate }}"
checksum:
name_template: "bdcli_checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- Merge pull request
- Merge branch
groups:
- title: 'Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: 'Bug Fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: 'Others'
order: 999
release:
prerelease: auto
mode: replace
header: |
## BetterDiscord CLI {{ .Tag }}
Install on Windows with winget: `winget install betterdiscord.cli`
Install on Mac/Linux with brew: `brew install betterdiscord/tap/bdcli`
footer: |
**Full Changelog**: https://github.com/BetterDiscord/cli/compare/{{ .PreviousTag }}...{{ .Tag }}
---
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
homebrew_casks:
- name: bdcli
description: "A cross-platform CLI for managing BetterDiscord."
homepage: "https://betterdiscord.app/"
license: "Apache-2.0"
binaries: [bdcli]
generate_completions_from_executable:
args: [completion]
shell_parameter_format: cobra
shells: [bash, zsh, fish, pwsh]
commit_author:
name: zerebos
email: 6865942+zerebos@users.noreply.github.com
repository:
owner: BetterDiscord
name: homebrew-tap
# Use bdcli-{{ .Tag }}-{{ .Now.Format "20060102150405"}} if we switch to using pull requests instead of pushing directly to main.
branch: main
token: "{{ .Env.GH_PAT }}"
winget:
- name: BetterDiscord CLI
package_identifier: betterdiscord.cli
author: BetterDiscord
release_notes: "{{ .Changelog }}"
release_notes_url: https://github.com/BetterDiscord/cli/releases/tag/{{ .Tag }}
publisher: "BetterDiscord"
publisher_url: "https://github.com/BetterDiscord"
publisher_support_url: "https://github.com/BetterDiscord/cli/issues"
license: "Apache-2.0"
license_url: "https://github.com/BetterDiscord/cli/blob/main/LICENSE"
short_description: "A cross-platform CLI for managing BetterDiscord."
homepage: "https://betterdiscord.app/"
tags: [cli, discord, utility, betterdiscord]
url_template: "https://github.com/BetterDiscord/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: zerebos
email: 6865942+zerebos@users.noreply.github.com
repository:
owner: betterdiscord
name: winget-pkgs
branch: bdcli-{{ .Tag }}-{{ .Now.Format "20060102150405"}}
token: "{{ .Env.GH_PAT }}"
pull_request:
enabled: true
base:
owner: microsoft
name: winget-pkgs
branch: master
draft: false
# Can't do this on linux or macOS, so we'll just skip it for now.
# We can always add it back later if we want to support it.
# chocolateys:
# - name: betterdiscordcli
# owners: BetterDiscord
# title: BetterDiscord CLI
# authors: BetterDiscord
# project_url: https://betterdiscord.app/
# url_template: "https://github.com/BetterDiscord/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# icon_url: https://betterdiscord.app/resources/branding/logo_solid.png
# copyright: 2025 BetterDiscord Limited
# license_url: https://github.com/BetterDiscord/cli/blob/main/LICENSE
# project_source_url: https://github.com/BetterDiscord/cli
# docs_url: https://docs.betterdiscord.app/
# bug_tracker_url: https://github.com/BetterDiscord/cli/issues
# tags: "betterdiscord cli discord"
# summary: A cross-platform CLI for managing BetterDiscord
# description: |
# A cross-platform CLI for managing BetterDiscord.
# Provides commands to install, uninstall, and manage BetterDiscord on your system.
# release_notes: "https://github.com/BetterDiscord/cli/releases/tag/v{{ .Version }}"
git:
ignore_tags:
- 'nightly'