Skip to content

Commit

Permalink
Makefile: support the windows x86_64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
toru committed Aug 27, 2024
1 parent 22a61f6 commit d5424ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"; \
Expand Down

0 comments on commit d5424ec

Please sign in to comment.