Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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