From 9e09446ae8befbe87bbb10461cb65f794195adef Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 22 Jul 2022 18:04:43 +0800 Subject: [PATCH] use correct binary name for cross build in macos when build windows binary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 364febc4..148d1377 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ darwin-arm64: .PHONY: windows-x64 windows-x64: @echo Build paopao-ce [windows-x64] CGO_ENABLED=$(CGO_ENABLED) - @CGO_ENABLED=$(CGO_ENABLED) GOOS=windows GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_WINDOWS_AMD64)/$(TARGET) + @CGO_ENABLED=$(CGO_ENABLED) GOOS=windows GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_WINDOWS_AMD64)/$(basename $(TARGET)).exe clean: @go clean