Skip to content

Commit

Permalink
Merge pull request #27 from acidlemon/feature/gox-static-binary
Browse files Browse the repository at this point in the history
build static binary using gox
  • Loading branch information
acidlemon authored Jun 6, 2019
2 parents 29103d8 + e333474 commit 20d15b0
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 @@ -5,7 +5,7 @@ clean:
rm -rf pkg/*

binary: clean
gox -osarch="linux/amd64 darwin/amd64 windows/amd64 windows/386" -output "pkg/{{.Dir}}-${GIT_VER}-{{.OS}}-{{.Arch}}" -ldflags "-X main.version=${GIT_VER} -X main.buildDate=${DATE}"
CGO_ENABLED=0 gox -osarch="linux/amd64 darwin/amd64 windows/amd64 windows/386" -output "pkg/{{.Dir}}-${GIT_VER}-{{.OS}}-{{.Arch}}" -ldflags "-X main.version=${GIT_VER} -X main.buildDate=${DATE} -extldflags \"-static\""

package: binary
cd ./pkg && find . -name "*${GIT_VER}*" -type f \
Expand Down

0 comments on commit 20d15b0

Please sign in to comment.