From 89e1708b15d94b61cbbe9d5ba0d668943a574aa0 Mon Sep 17 00:00:00 2001 From: sbwml Date: Tue, 17 Jun 2025 18:12:46 +0800 Subject: [PATCH] openlist: fix the version build information Signed-off-by: sbwml --- openlist/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlist/Makefile b/openlist/Makefile index bab1f6a..bfd518c 100644 --- a/openlist/Makefile +++ b/openlist/Makefile @@ -36,8 +36,8 @@ GO_PKG_LDFLAGS:= \ -X '$(GO_PKG)/internal/conf.BuiltAt=$(shell date '+%Y-%m-%d %H:%M:%S %z')' \ -X '$(GO_PKG)/internal/conf.GoVersion=$(shell $(STAGING_DIR_HOSTPKG)/bin/go version | sed 's/go version //')' \ -X '$(GO_PKG)/internal/conf.GitAuthor=The OpenList Projects Contributors ' \ - -X '$(GO_PKG)/internal/conf.GitCommit=tarball/$(shell echo $(PKG_HASH) | cut -c 1-7)' \ - -X '$(GO_PKG)/internal/conf.Version=v$(PKG_VERSION) (OpenWrt $(ARCH_PACKAGES))' \ + -X '$(GO_PKG)/internal/conf.GitCommit=$(shell echo $(PKG_SOURCE_VERSION) | cut -c 1-7)' \ + -X '$(GO_PKG)/internal/conf.Version=$(PKG_SOURCE_DATE) (OpenWrt $(ARCH_PACKAGES))' \ -X '$(GO_PKG)/internal/conf.WebVersion=v$(PKG_WEB_VERSION)' ifneq ($(CONFIG_ARCH_64BIT),y) GO_PKG_EXCLUDES:=drivers/lark