From 9b66e0a09451782ead00f9cdedfb4569a7545535 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sun, 23 Jan 2022 10:45:18 +1100 Subject: [PATCH] Include zip file checksums in release --- scripts/xcompile.sh | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/scripts/xcompile.sh b/scripts/xcompile.sh index fe2f2f38..c7b24534 100755 --- a/scripts/xcompile.sh +++ b/scripts/xcompile.sh @@ -1,8 +1,6 @@ #!/bin/bash set -e -# This assumes that gonative and gox is installed as per the 'one time setup' instructions -# at https://github.com/inconshreveable/gonative - +# you may need to go get github.com/mitchellh/gox first CGO_ENABLED=0 gox -ldflags "${LDFLAGS}" -output="build/yq_{{.OS}}_{{.Arch}}" --osarch="darwin/amd64 darwin/arm64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm linux/arm64 linux/mips linux/mips64 linux/mips64le linux/mipsle linux/ppc64 linux/ppc64le linux/s390x netbsd/386 netbsd/amd64 netbsd/arm openbsd/386 openbsd/amd64 windows/386 windows/amd64" @@ -11,19 +9,16 @@ cd build find . -executable -type f | xargs -I {} tar czvf {}.tar.gz {} yq.1 -C ../scripts install-man-page.sh tar czvf yq_man_page_only.tar.gz yq.1 -C ../scripts install-man-page.sh -rhash -r -a . -o checksums - -rhash --list-hashes > checksums_hashes_order - -cp ../scripts/extract-checksum.sh . - -# just in case find thinks this is executable... -rm -f checksums_hashes_order.tar.gz -rm -f checksums.tar.gz -rm yq.1 - rm yq_windows_386.exe.tar.gz rm yq_windows_amd64.exe.tar.gz zip yq_windows_386.zip yq_windows_386.exe zip yq_windows_amd64.zip yq_windows_amd64.exe + +rm yq.1 + +rhash -r -a . -o checksums + +rhash --list-hashes > checksums_hashes_order + +cp ../scripts/extract-checksum.sh . \ No newline at end of file