Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #43 from errm/optimise-bin-shrink
Browse files Browse the repository at this point in the history
Optimise bin compression
  • Loading branch information
errm committed Sep 3, 2018
2 parents 972d081 + c89e519 commit a1582f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ builds:
goarch:
- amd64
hooks:
post: upx --brute ./dist/linux_amd64/ekstrap
post: strip -x ./dist/linux_amd64/ekstrap && upx -9 ./dist/linux_amd64/ekstrap
archive:
replacements:
amd64: x86_64
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GOCMD=go
GOBUILD=$(GOCMD) build -ldflags="-s -w"
GOTEST=$(GOCMD) test
UPX=upx --brute
UPX=upx -9
BINARY_NAME=ekstrap
WORKDIR=/go/src/github.com/errm/ekstrap

Expand All @@ -12,6 +12,7 @@ all: test lint $(BINARY_NAME)
$(BINARY_NAME): generate
$(GOBUILD) -o $(BINARY_NAME) -v
compress: $(BINARY_NAME)
strip -x $(BINARY_NAME)
$(UPX) $(BINARY_NAME)
test:
$(GOTEST) -coverprofile=coverage.txt -covermode=count ./...
Expand Down

0 comments on commit a1582f1

Please sign in to comment.