From e20dc8e46ecfe69f187ddd7dcf0d1b0f56b92781 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 17:03:19 -0600 Subject: put the gui git version in the .deb Signed-off-by: Jeff Carr --- debian/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian') diff --git a/debian/Makefile b/debian/Makefile index 7f4691f..993769d 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -1,4 +1,5 @@ # GITVERSION=$(shell git rev-parse FETCH_HEAD) +GUIVERSION=$(shell cd ../../gui && git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//') VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//') BASENAME=go-wit-gui @@ -8,6 +9,7 @@ all: help deb help: @echo @echo "make deb # attempt to build the .deb package using dpkg" + @echo "make rpm # attempt to build a .rpm package" @echo deb: clean extract DEBIAN build @@ -35,6 +37,7 @@ DEBIAN: mkdir -p DEBIAN cp control DEBIAN/ echo Version: ${VERSION} >>DEBIAN/control + echo GuiVersion: ${GUIVERSION} >>DEBIAN/control cp postinst DEBIAN -- cgit v1.2.3