Skip to content

Commit

Permalink
Introduce upx in build process
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Jun 6, 2017
1 parent 944a22e commit edd8297
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ WORKFLOW_DIR = ~/Dropbox/Alfred/Alfred.alfredpreferences/workflows
BUNDLE_ID = com.ruedap.emma-css
CLI_CMD = ./workflow/awc

default: build cli test
default: build upx cli test

ci: build cli coveralls

release: clean build unlink link
release: clean build upx unlink link

cli:
@echo "--> Running CLI commands"
Expand All @@ -16,7 +16,10 @@ cli:
build:
@echo "--> Compiling packages and dependencies"
@mkdir -p ./workflow/
go build -ldflags '-s -w' -o $(CLI_CMD)
go build -ldflags '-w -s' -o $(CLI_CMD)

upx:
upx -5 $(CLI_CMD)

coveralls:
@echo "--> Testing packages and sending coverage report"
Expand Down

0 comments on commit edd8297

Please sign in to comment.