From c0544ed4a139ba47bd879a2405bfa73e4c10328a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 11:26:50 -0500 Subject: new --version --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 266aebb..ddde8a2 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: debian VERSION = $(shell git describe --tags) -DATE = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%s) run: clean goimports vet install go-deb --gui andlabs gui @@ -21,12 +21,12 @@ auto-build: build build: goimports vet -rm resources/*.so touch resources/blank.so - GO111MODULE="off" go build -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" + GO111MODULE=off go build -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" install: goimports - GO111MODULE="off" go install -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" goimports: goimports -w *.go -- cgit v1.2.3