From d5424ecc4f60bf760e76c84201b60392bc6136d0 Mon Sep 17 00:00:00 2001 From: Toru Maesaka Date: Mon, 26 Aug 2024 18:02:21 -0700 Subject: [PATCH] Makefile: support the windows x86_64 platform --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b3b7139..0e23a07 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,13 @@ release-linux-amd64: require-version CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ${RELEASE_BUILD_FLAGS} -o $(RELEASE_DIR)/$(BINARY_NAME) tar -czvf $(BINARY_NAME)-$(VERSION)-linux-amd64.tar.gz -C $(RELEASE_DIR) $(BINARY_NAME) +release-windows-amd64: + @echo "Building for windows-amd64" + rm -rf $(RELEASE_DIR) + go vet ./... + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ${RELEASE_BUILD_FLAGS} -o $(RELEASE_DIR)/$(BINARY_NAME).exe + zip -j $(BINARY_NAME)-$(VERSION)-windows-amd64.zip $(RELEASE_DIR)/$(BINARY_NAME).exe + require-version: @if [ "$(VERSION)" = "dev" ]; then \ echo "You must set the VERSION"; \