Skip to content

Commit ba52e64

Browse files
committed
fix goreleaser for real this time
1 parent 02d50f7 commit ba52e64

File tree

5 files changed

+56
-59
lines changed

5 files changed

+56
-59
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ dist
22
.DS_Store
33
.idea
44
cmd/aces/aces
5+
cmd/aces/dist

.goreleaser.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

cmd/aces/.goreleaser.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: 1
2+
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
8+
builds:
9+
- env:
10+
- CGO_ENABLED=0
11+
goos:
12+
- linux
13+
- windows
14+
- darwin
15+
# main: ./cmd/aces
16+
id: "aces"
17+
binary: aces
18+
ldflags:
19+
- -s -w -X main.version=v{{.Version}} # -X main.commit={{.Commit}} -X main.date={{.Date}}
20+
21+
archives:
22+
- format: tar.gz
23+
# this name template makes the OS and Arch compatible with the results of `uname`.
24+
name_template: >-
25+
{{ .ProjectName }}_
26+
{{- title .Os }}_
27+
{{- if eq .Arch "amd64" }}x86_64
28+
{{- else if eq .Arch "386" }}i386
29+
{{- else }}{{ .Arch }}{{ end }}
30+
{{- if .Arm }}v{{ .Arm }}{{ end }}
31+
# use zip for windows archives
32+
format_overrides:
33+
- goos: windows
34+
format: zip
35+
36+
changelog:
37+
sort: asc
38+
filters:
39+
exclude:
40+
- "^docs:"
41+
- "^test:"
42+
43+
brews:
44+
-
45+
repository:
46+
owner: quackduck
47+
name: homebrew-tap
48+
49+
homepage: 'https://github.com/quackduck/aces'
50+
51+
description: 'Encode in a character set of your choice'

cmd/aces/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module aces
22

33
go 1.22.2
44

5-
require github.com/quackduck/aces/v2 v2.2.4
5+
require github.com/quackduck/aces/v2 v2.2.9
66

7-
replace github.com/quackduck/aces/v2 v2.2.4 => ../../v2
7+
replace github.com/quackduck/aces/v2 => ../../v2

cmd/aces/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
github.com/quackduck/aces v1.2.1 h1:T5Pp7zwP21Oua5kyN92/ODzpSbRvr7Eazh1dlP2GhHs=
2-
github.com/quackduck/aces v1.2.1/go.mod h1:vYQb2Re9/zAjQhTsr5eG3jtOz0iLY/Ris8Cc5e0IxXQ=
3-
github.com/quackduck/aces/v2 v2.2.4 h1:0vyLzsedncHpBoqYUPU7RTfGuXMfGoUracpDsfOM/Y0=
4-
github.com/quackduck/aces/v2 v2.2.4/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc=
1+
github.com/quackduck/aces/v2 v2.2.9 h1:Q2eisMPmSPKSu8HXwmNBoN+ayF/LDw3s7gV9NB+0++Y=
2+
github.com/quackduck/aces/v2 v2.2.9/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc=

0 commit comments

Comments
 (0)