Skip to content

Commit

Permalink
fixing windows release exe build
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronelliott committed Nov 5, 2021
1 parent 0c2ba36 commit 309a4c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ PLATFORMS := linux/amd64 windows/amd64 darwin/amd64 darwin/arm64 linux/arm64
temp = $(subst /, ,$@)
os = $(word 1, $(temp))
arch = $(word 2, $(temp))
binname = dist/deadsfu-$(os)-$(arch)
bintarname = $(binname).tar.gz
ext = $(if $(findstring windows,$(os)),.exe)

binname = deadsfu$(ext)
bintarname = dist/deadsfu-$(os)-$(arch).tar.gz
goflags = -ldflags "-X main.Version=$(VER)"

binbuild: cleardist $(PLATFORMS)
Expand Down

0 comments on commit 309a4c9

Please sign in to comment.