Skip to content

Commit

Permalink
Merge pull request #233 from xuewenG/fix/windows-filename
Browse files Browse the repository at this point in the history
修正 windows 平台的构建产物的文件名
  • Loading branch information
xuewenG authored Dec 11, 2024
2 parents 574ad67 + ffe8847 commit b20997f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ LINUX_AMD64_BINARY_NAME := $(BINARY_NAME)-linux-amd64-$(VERSION)
LINUX_ARM64_BINARY_NAME := $(BINARY_NAME)-linux-arm64-$(VERSION)
DARWIN_AMD64_BINARY_NAME := $(BINARY_NAME)-darwin-amd64-$(VERSION)
DARWIN_ARM64_BINARY_NAME := $(BINARY_NAME)-darwin-arm64-$(VERSION)
WINDOWS_AMD64_BINARY_NAME := $(BINARY_NAME)-windows-amd64.exe-$(VERSION)
WINDOWS_ARM64_BINARY_NAME := $(BINARY_NAME)-windows-arm64.exe-$(VERSION)
WINDOWS_AMD64_BINARY_NAME := $(BINARY_NAME)-windows-amd64-$(VERSION).exe
WINDOWS_ARM64_BINARY_NAME := $(BINARY_NAME)-windows-arm64-$(VERSION).exe

BUILD_CMD_DEV := go build -ldflags="-X main.version=$(VERSION) -X main.commitId=$(COMMIT_ID)"
BUILD_CMD_PROD := go build -tags prod -ldflags="-s -w -X main.version=$(VERSION) -X main.commitId=$(COMMIT_ID)"
Expand Down

0 comments on commit b20997f

Please sign in to comment.