From ff564380a71b607821de4eca4afa0865f3c7e51c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Nov 2024 10:51:45 -0600 Subject: fix ldflags --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1e7f3b0..f758bec 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: debian VERSION = $(shell git describe --tags) +DATE = $(shell date +%Y.%m.%d) run: build ./go-deb --repo go.wit.com/apps/autotypist @@ -17,11 +18,11 @@ build: touch resources/blank.so -cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins GO111MODULE="off" go build -v \ - -ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" install: GO111MODULE="off" go install -v \ - -ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" goimports: goimports -w *.go -- cgit v1.2.3