From fb70f8284c409a407a3d502e972389a4ac57f52c Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 26 Mar 2024 18:35:11 +0100 Subject: [PATCH] fixed github path, rm mkrel --- Makefile | 5 +--- go.mod | 2 +- mkrel.sh | 80 -------------------------------------------------------- 3 files changed, 2 insertions(+), 85 deletions(-) delete mode 100755 mkrel.sh diff --git a/Makefile b/Makefile index 04ffa9e..2ba5ac1 100644 --- a/Makefile +++ b/Makefile @@ -72,11 +72,8 @@ cover-report: goupdate: go get -t -u=patch ./... -buildall: - ./mkrel.sh $(tool) $(VERSION) - release: - gh release create v$(VERSION) --generate-notes releases/* + gh release create v$(VERSION) --generate-notes show-versions: buildlocal @echo "### kageviewer version:" diff --git a/go.mod b/go.mod index 566180d..ffa4560 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/TLINDEN/kageviewer +module github.com/tlinden/kageviewer go 1.22 diff --git a/mkrel.sh b/mkrel.sh deleted file mode 100755 index 53adb5f..0000000 --- a/mkrel.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -# Copyright © 2024 Thomas von Dein - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -# get list with: go tool dist list -DIST="darwin/amd64 -freebsd/amd64 -linux/amd64 -netbsd/amd64 -openbsd/amd64 -windows/amd64 -freebsd/arm64 -linux/arm64 -netbsd/arm64 -openbsd/arm64 -windows/arm64" - -DIST="linux/amd64 -windows/amd64 -windows/arm64" - -tool="$1" -version="$2" - -if test -z "$version"; then - echo "Usage: $0 " - exit 1 -fi - -rm -rf releases -mkdir -p releases - - -for D in $DIST; do - os=${D/\/*/} - arch=${D/*\//} - binfile="releases/${tool}-${os}-${arch}-${version}" - - if test "$os" = "windows"; then - binfile="${binfile}.exe" - fi - - tardir="${tool}-${os}-${arch}-${version}" - tarfile="releases/${tool}-${os}-${arch}-${version}.tar.gz" - set -x - #GOOS=${os} GOARCH=${arch} go build -tags osusergo,netgo -ldflags "-extldflags=-static" -o ${binfile} - GOOS=${os} GOARCH=${arch} go build -o ${binfile} - mkdir -p ${tardir} - cp ${binfile} README.md LICENSE ${tardir}/ - echo 'tool = kageviewer -PREFIX = /usr/local -UID = root -GID = 0 - -install: - install -d -o $(UID) -g $(GID) $(PREFIX)/bin - install -d -o $(UID) -g $(GID) $(PREFIX)/man/man1 - install -o $(UID) -g $(GID) -m 555 $(tool) $(PREFIX)/sbin/ - install -o $(UID) -g $(GID) -m 444 $(tool).1 $(PREFIX)/man/man1/' > ${tardir}/Makefile - tar cpzf ${tarfile} ${tardir} - sha256sum ${binfile} | cut -d' ' -f1 > ${binfile}.sha256 - sha256sum ${tarfile} | cut -d' ' -f1 > ${tarfile}.sha256 - rm -rf ${tardir} - set +x -done -