This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch issue7845
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit e2aaa774e81d7cdeb4043d7b0c0d8a338ecc2df0
Author: kezhenxu94 <[email protected]>
AuthorDate: Fri Apr 22 16:46:03 2022 +0800

    Add .exe suffix to windows binary
---
 .gitignore | 1 +
 Makefile   | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index c9eb1bb..16cbe49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@
 # under the License.
 
 .idea/
+.vscode/
 /bin/
 assets/assets.gen.go
 .DS_Store
diff --git a/Makefile b/Makefile
index d2aafdf..c809572 100644
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,12 @@ test: clean
        $(GO_TEST) ./... -coverprofile=coverage.txt -covermode=atomic
        @>&2 echo "Great, all tests passed."
 
+windows: PROJECT_SUFFIX=.exe
+
 .PHONY: $(PLATFORMS)
 $(PLATFORMS):
        mkdir -p $(OUT_DIR)
-       GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags 
"$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT) cmd/$(PROJECT)/main.go
+       GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags 
"$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT)$(PROJECT_SUFFIX) 
cmd/$(PROJECT)/main.go
 
 .PHONY: build
 build: windows linux darwin

Reply via email to