|
|
|
@ -8,11 +8,12 @@ RELEASE_DARWIN_AMD64 = $(RELEASE_ROOT)/darwin-amd64/$(TARGET)
|
|
|
|
|
RELEASE_DARWIN_ARM64 = $(RELEASE_ROOT)/darwin-arm64/$(TARGET)
|
|
|
|
|
RELEASE_WINDOWS_AMD64 = $(RELEASE_ROOT)/windows-amd64/$(TARGET)
|
|
|
|
|
|
|
|
|
|
BUILD_VERSION := $(shell git describe --tags | cut -f 1 -d "-")
|
|
|
|
|
BUILD_DATE := $(shell date +'%Y-%m-%d %H:%M:%S')
|
|
|
|
|
SHA_SHORT := $(shell git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
|
|
TAGS = ""
|
|
|
|
|
LDFLAGS = -X "main.buildDate=${BUILD_DATE}" -X "main.commitID=${SHA_SHORT}" -w -s
|
|
|
|
|
LDFLAGS = -X "main.version=${BUILD_VERSION}" -X "main.buildDate=${BUILD_DATE}" -X "main.commitID=${SHA_SHORT}" -w -s
|
|
|
|
|
|
|
|
|
|
all: fmt build
|
|
|
|
|
|
|
|
|
|