Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exec ext for windows on releases #9

Merged
merged 2 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ cover: ## Runs go test with coverage
define buildpretty
mkdir -p $(BUILDDIR)/$(1)/$(2);
GOOS=$(1) GOARCH=$(2) GO111MODULE=on CGO_ENABLED=0 go build \
-o $(BUILDDIR)/$(1)/$(2)/$(3) \
-o $(BUILDDIR)/$(1)/$(2)/$(3)$(if $(findstring windows, $(1)),.exe) \
-a -tags "$(BUILDTAGS) static_build netgo" \
-installsuffix netgo $(call GO_LDFLAGS_STATIC,$3) $(BASE_BINARIES)/$(3);
md5sum $(BUILDDIR)/$(1)/$(2)/$(3) > $(BUILDDIR)/$(1)/$(2)/$(3).md5;
sha256sum $(BUILDDIR)/$(1)/$(2)/$(3) > $(BUILDDIR)/$(1)/$(2)/$(3).sha256;
md5sum $(BUILDDIR)/$(1)/$(2)/$(3)$(if $(findstring windows, $(1)),.exe) > $(BUILDDIR)/$(1)/$(2)/$(3)$(if $(findstring windows, $(1)),.exe).md5;
sha256sum $(BUILDDIR)/$(1)/$(2)/$(3)$(if $(findstring windows, $(1)),.exe) > $(BUILDDIR)/$(1)/$(2)/$(3)$(if $(findstring windows, $(1)),.exe).sha256;
endef

.PHONY: cross
Expand All @@ -96,11 +96,11 @@ cross: VERSION.txt ## Builds the cross-compiled binaries, creating a clean direc

define buildrelease
GOOS=$(1) GOARCH=$(2) GO111MODULE=on CGO_ENABLED=0 go build \
-o $(BUILDDIR)/$(3)-$(1)-$(2) \
-o $(BUILDDIR)/$(3)-$(1)-$(2)$(if $(findstring windows, $(1)),.exe) \
-a -tags "$(BUILDTAGS) static_build netgo" \
-installsuffix netgo $(call GO_LDFLAGS_STATIC,$3) $(BASE_BINARIES);
md5sum $(BUILDDIR)/$(3)-$(1)-$(2) > $(BUILDDIR)/$(3)-$(1)-$(2).md5;
sha256sum $(BUILDDIR)/$(3)-$(1)-$(2) > $(BUILDDIR)/$(3)-$(1)-$(2).sha256;
md5sum $(BUILDDIR)/$(3)-$(1)-$(2)$(if $(findstring windows, $(1)),.exe) > $(BUILDDIR)/$(3)-$(1)-$(2)$(if $(findstring windows, $(1)),.exe).md5;
sha256sum $(BUILDDIR)/$(3)-$(1)-$(2)$(if $(findstring windows, $(1)),.exe) > $(BUILDDIR)/$(3)-$(1)-$(2)$(if $(findstring windows, $(1)),.exe).sha256;
endef

.PHONY: release
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2