Use the host target for source-built release tools
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user