Skip to content

Commit

Permalink
Shrink binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Aug 19, 2018
1 parent 3e5f27d commit acc46f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ FILES := $(BIN) info.plist icon.png

build: alfred-github-jump

package: Github\ Jump.alfredworkflow

Github\ Jump.alfredworkflow: $(FILES)
zip -j "$@" $^

alfred-github-jump: $(SOURCES)
CGO_ENABLED=1 go build -o alfred-github-jump $(SOURCES)
CGO_ENABLED=1 go build -ldflags="-s -w" -o alfred-github-jump $(SOURCES)

clean:
-rm $(BIN) Github\ Jump.alfredworkflow

0 comments on commit acc46f0

Please sign in to comment.