From 57cd67f05514c9524204251f3bb94f0dd78c2e40 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 21 Dec 2020 21:40:08 +1100 Subject: [PATCH] Added compressed binaries for download managers and better file size --- scripts/xcompile.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/xcompile.sh b/scripts/xcompile.sh index d41d97c6..2d3a198a 100755 --- a/scripts/xcompile.sh +++ b/scripts/xcompile.sh @@ -11,4 +11,14 @@ CGO_ENABLED=0 gox -ldflags "${LDFLAGS}" -os=linux -output="build/yq_{{.OS}}_{{. cd build rhash -r -a . -P -o checksums -rhash --list-hashes > checksums_hashes_order \ No newline at end of file +rhash --list-hashes > checksums_hashes_order + +gzip -k --best * + +rm checksums_hashes_order.gz +rm checksums.gz +rm yq_windows_386.exe.gz +rm yq_windows_amd64.exe.gz + +zip yq_windows_386.zip yq_windows_386.exe +zip yq_windows_amd64.zip yq_windows_amd64.exe \ No newline at end of file