Use the host target for source-built release tools

This commit is contained in:
2026-11-04 00:49:59 +00:00
parent 8e897d7b3e
commit 10028c4abb
5 changed files with 23 additions and 4 deletions

View File

@@ -6,6 +6,9 @@ if [ "$#" -ne 1 ]; then
exit 2
fi
releasekit_host_os=$(GOTOOLCHAIN=local go env GOHOSTOS) || exit $?
releasekit_host_arch=$(GOTOOLCHAIN=local go env GOHOSTARCH) || exit $?
export GOOS="$releasekit_host_os" GOARCH="$releasekit_host_arch"
mkdir -p .releasekit/bin
GOTOOLCHAIN=local go build -o .releasekit/bin/releasekit ./cmd/releasekit
exec .releasekit/bin/releasekit publish "$1"