From 48402ae6f958ff18fbaed472042ca7d25c97e660 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Sun, 26 May 2024 18:52:14 -0700 Subject: [PATCH] download source tar --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4a24638..7fe8bbd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ LDFLAGS?=--ldflags '-extldflags "-static"' --ldflags="-X 'main.commit=$(shell git rev-parse HEAD)' -X 'main.version=$(shell git describe --tags)' -X 'main.date=$(shell date '+%Y-%m-%d %T.%s%z')'" export CGO_ENABLED=1 -VERSION?=$(shell git describe --tags | sed -e 's/^v//') +VERSION?=$(shell git describe --tags | sed -e 's/^v//' -e 's/-/_/g') .PHONY=jx-cli build: jx-cli @@ -15,4 +15,5 @@ test: jx-cli rpm: echo Building $(VERSION) dnf install -y nodejs git dnf-plugins-core rpm-build rpmdevtools + spectool -g -R build/js.spec rpmbuild -ba --define='version $(VERSION)' build/jx.spec