Skip to content

Commit ec6167b

Browse files
committed
Fixed deprecated gorelease flags
1 parent 8dd48ae commit ec6167b

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.goreleaser.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ builds:
6666
- windows
6767
goarch:
6868
- "386"
69-
scoop:
70-
bucket:
71-
owner: twitchdev
72-
name: scoop-bucket
73-
homepage: https://github.com/twitchdev/twitch-cli
74-
description: CLI for Twitch's developer offerings
75-
license: Apache-2.0
69+
scoops:
70+
-
71+
repository:
72+
owner: twitchdev
73+
name: scoop-bucket
74+
homepage: https://github.com/twitchdev/twitch-cli
75+
description: CLI for Twitch's developer offerings
76+
license: Apache-2.0
7677
brews:
7778
-
78-
tap:
79+
repository:
7980
owner: twitchdev
8081
name: homebrew-twitch
8182
folder: Formula
@@ -87,12 +88,7 @@ brews:
8788
system "#{bin}/twitch", "version"
8889
license: Apache-2.0
8990
archives:
90-
- replacements:
91-
darwin: Darwin
92-
linux: Linux
93-
windows: Windows
94-
386: i386
95-
amd64: x86_64
91+
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os }}_{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}'
9692
format_overrides:
9793
- goos: windows
9894
format: zip

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ release:
55
-v /var/run/docker.sock:/var/run/docker.sock \
66
-w /go/src/github.com/twitchdev/twitch-cli \
77
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
8-
twitch-cli:latest --rm-dist
8+
twitch-cli:latest --clean
99

1010
test-release:
1111
docker build . -t twitch-cli:latest
@@ -14,7 +14,7 @@ test-release:
1414
-v /var/run/docker.sock:/var/run/docker.sock \
1515
-w /go/src/github.com/twitchdev/twitch-cli \
1616
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
17-
twitch-cli:latest --rm-dist --skip-publish --snapshot
17+
twitch-cli:latest --clean --skip-publish --snapshot
1818

1919
build:
2020
go build --ldflags "-s -w -X main.buildVersion=source"
@@ -23,4 +23,4 @@ build_all:
2323
xgo -out build/twitch --targets "darwin/amd64,windows/amd64,linux/amd64" --ldflags "-s -w -X main.buildVersion=source" ./
2424

2525
clean:
26-
rm -rf ~/.twitch-cli/eventCache.db
26+
rm -rf ~/.twitch-cli/eventCache.db

0 commit comments

Comments
 (0)