Skip to content

Commit

Permalink
Compress binaries before deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
riobard committed Apr 1, 2018
1 parent 51bc0d9 commit 29a3f3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
go:
- 1.x
install: go get -u -t -v ./...
script: make all
script: make releases
deploy:
provider: releases
api_key:
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ macos:
win64:
GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe

releases: linux macos win64
gzip $(BINDIR)/shadowsocks2-linux
gzip $(BINDIR)/shadowsocks2-macos
zip -m $(BINDIR)/shadowsocks2-win64.zip $(BINDIR)/shadowsocks2-win64.exe

clean:
rm $(BINDIR)/*

0 comments on commit 29a3f3c

Please sign in to comment.