From f02f64f82ab4005b6bf047670c3bf5e28f3b3428 Mon Sep 17 00:00:00 2001 From: dcsunny <934831065@qq.com> Date: Wed, 1 Jul 2026 15:15:29 +0800 Subject: [PATCH] build: default version to latest git tag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9881cc2..3596c6c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BINARY ?= htsy-cli -VERSION ?= dev +VERSION ?= $(shell git describe --tags --abbrev=0 2>/dev/null || echo dev) LDFLAGS := -s -w -X main.version=$(VERSION) PLATFORMS := darwin/amd64 darwin/arm64 windows/amd64