download source tar
Some checks failed
Lint / golangci-lint (push) Successful in 9m45s
Declarative Tests / test (push) Successful in 23s
Declarative Tests / build (push) Failing after 59s

This commit is contained in:
Matthew Rich 2024-05-26 18:52:14 -07:00
parent 9a357ff79c
commit 48402ae6f9

View File

@ -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