Skip to content

Commit

Permalink
add -w -s option to go build
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Oct 3, 2016
1 parent fb5e16b commit 06ca206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bindata.go: assets/index.html assets/scripts/dashboard.js assets/css/style.css
go-bindata -prefix=assets assets/...

packages: bindata.go dashboard.go
gox -os="linux darwin windows" -arch="amd64 386" -output "pkg/{{.Dir}}-${GIT_VER}-{{.OS}}-{{.Arch}}" -ldflags "-X main.Version=${GIT_VER}"
gox -os="linux darwin windows" -arch="amd64 386" -output "pkg/{{.Dir}}-${GIT_VER}-{{.OS}}-{{.Arch}}" -ldflags "-w -s -X main.Version=${GIT_VER}"
cd pkg && find . -name "*${GIT_VER}*" -type f -exec zip {}.zip {} \;

clean:
Expand Down

0 comments on commit 06ca206

Please sign in to comment.