Skip to content

Commit

Permalink
Merge pull request #255 from twitchdev/goreleaser-deprecation-fixes
Browse files Browse the repository at this point in the history
Fixed deprecated gorelease flags
  • Loading branch information
Xemdo authored Jul 18, 2023
2 parents 8dd48ae + ec6167b commit 69cbc13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
24 changes: 10 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ builds:
- windows
goarch:
- "386"
scoop:
bucket:
owner: twitchdev
name: scoop-bucket
homepage: https://github.com/twitchdev/twitch-cli
description: CLI for Twitch's developer offerings
license: Apache-2.0
scoops:
-
repository:
owner: twitchdev
name: scoop-bucket
homepage: https://github.com/twitchdev/twitch-cli
description: CLI for Twitch's developer offerings
license: Apache-2.0
brews:
-
tap:
repository:
owner: twitchdev
name: homebrew-twitch
folder: Formula
Expand All @@ -87,12 +88,7 @@ brews:
system "#{bin}/twitch", "version"
license: Apache-2.0
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os }}_{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}'
format_overrides:
- goos: windows
format: zip
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ release:
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/twitchdev/twitch-cli \
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
twitch-cli:latest --rm-dist
twitch-cli:latest --clean

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

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

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

0 comments on commit 69cbc13

Please sign in to comment.