This commit is contained in:
2024-05-24 17:18:59 +02:00
parent 92f2236eb2
commit 743a18c696
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
# #
# no need to modify anything below # no need to modify anything below
tool = golsky tool = golsky
VERSION = $(shell grep VERSION config.go | head -1 | cut -d '"' -f2) VERSION = $(shell grep VERSION main.go | head -1 | cut -d '"' -f2)
archs = darwin freebsd linux windows archs = darwin freebsd linux windows
PREFIX = /usr/local PREFIX = /usr/local
UID = root UID = root
@@ -69,7 +69,7 @@ buildall:
./mkrel.sh $(tool) $(VERSION) ./mkrel.sh $(tool) $(VERSION)
release: buildall release: buildall
gh release create v$(VERSION) --generate-notes releases/* gh release create $(VERSION) --generate-notes releases/*
show-versions: buildlocal show-versions: buildlocal
@echo "### golsky version:" @echo "### golsky version:"

View File

@@ -45,6 +45,7 @@ for D in $DIST; do
tarfile="releases/${tool}-${os}-${arch}-${version}.tar.gz" tarfile="releases/${tool}-${os}-${arch}-${version}.tar.gz"
set -x set -x
GOOS=${os} GOARCH=${arch} go build -o ${binfile} GOOS=${os} GOARCH=${arch} go build -o ${binfile}
set +x
continue continue
mkdir -p ${tardir} mkdir -p ${tardir}