From 81fac864f1447ca686c78ad0056d9e5bed658ad2 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 11 Oct 2022 18:42:10 +0200 Subject: [PATCH] using gh for release generation, fixed mkrel.sh to add version --- Makefile | 1 + mkrel.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42a5377..45bd4bd 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ buildlocal: release: ./mkrel.sh $(tool) $(version) + gh release create $(version) --generate-notes releases/* install: buildlocal install -d -o $(UID) -g $(GID) $(PREFIX)/bin diff --git a/mkrel.sh b/mkrel.sh index cb07229..5a23a1e 100755 --- a/mkrel.sh +++ b/mkrel.sh @@ -43,7 +43,7 @@ for D in $DIST; do tardir="${tool}-${os}-${arch}-${version}" tarfile="releases/${tool}-${os}-${arch}-${version}.tar.gz" set -x - GOOS=${os} GOARCH=${arch} go build -o ${binfile} + GOOS=${os} GOARCH=${arch} go build -o ${binfile} -ldflags "-X 'github.com/tlinden/tablizer/lib.VERSION=${version}'" mkdir -p ${tardir} cp ${binfile} README.md LICENSE ${tardir}/ echo 'tool = tablizer