Skip to content

Commit

Permalink
Fix upx
Browse files Browse the repository at this point in the history
  • Loading branch information
barnybug committed May 31, 2018
1 parent 243e755 commit 129f77f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- goos: darwin
goarch: 386
hooks:
post: make deps upx
post: make upx
archive:
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
format: binary
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ export GO15VENDOREXPERIMENT=1
exe = ./cmd/cast
buildargs = -ldflags '-w -s -X github.com/barnybug/go-cast.Version=${TRAVIS_TAG}'

.PHONY: all build install test coverage deps release
.PHONY: all build install test coverage release upx

all: install

deps:
go get github.com/pwaller/goupx

test:
go test . ./api/... ./cmd/... ./controllers/... ./discovery/... ./events/... ./log/... ./net/...

Expand All @@ -30,5 +27,4 @@ release:
upx release/cast-linux-386 release/cast-linux-arm release/cast-windows-386.exe

upx:
goupx dist/go-cast-linux-amd64/cast-linux-amd64
upx dist/go-cast-linux-386/cast-linux-386 dist/go-cast-linux-arm/cast-linux-arm dist/go-cast-windows-386/cast-windows-386.exe
upx dist/go-cast-linux-386/cast-linux-386 dist/go-cast-linux-amd64/cast-linux-amd64 dist/go-cast-linux-arm/cast-linux-arm dist/go-cast-windows-386/cast-windows-386.exe

0 comments on commit 129f77f

Please # to comment.