feat: add Homebrew and Scoop publishing scripts, enhance versioning metadata
This commit is contained in:
@@ -7,10 +7,11 @@ DIST := dist
|
||||
PREFIX ?= $(HOME)/.local
|
||||
GOBIN ?= $(PREFIX)/bin
|
||||
|
||||
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
|
||||
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
|
||||
COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
|
||||
DATE := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
LDFLAGS := -s -w -X main.version=$(VERSION)
|
||||
PRERELEASE ?= false
|
||||
LDFLAGS := -s -w -X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.date=$(DATE) -X main.prerelease=$(PRERELEASE)
|
||||
GOFLAGS := -trimpath
|
||||
CGO_ENABLED ?= 0
|
||||
|
||||
@@ -31,7 +32,7 @@ help:
|
||||
@echo ""
|
||||
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
@echo ""
|
||||
@echo "Variables: TAGS=cloud (adds cloud auth to any target), PREFIX, GOBIN, PLATFORMS, VERSION"
|
||||
@echo "Variables: TAGS=cloud (adds cloud auth to any target), PREFIX, GOBIN, PLATFORMS, VERSION, PRERELEASE"
|
||||
|
||||
## build: build the default binary (no cloud auth) into dist/
|
||||
build: ## build the default binary (no cloud auth) into dist/
|
||||
|
||||
Reference in New Issue
Block a user