forked from twitchdev/twitch-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (22 loc) · 859 Bytes
/
Makefile
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
release:
docker build . -t twitch-cli:latest
docker run --rm --privileged \
-v $$PWD:/go/src/github.com/twitchdev/twitch-cli \
-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 --clean
test-release:
docker build . -t twitch-cli:latest
docker run --rm --privileged \
-v $$PWD:/go/src/github.com/twitchdev/twitch-cli \
-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 --clean --skip=publish --snapshot
build:
go build --ldflags "-s -w -X main.buildVersion=source"
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