2015-09-28 23:39:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This assumes that gonative and gox is installed as per the 'one time setup' instructions
|
|
|
|
# at https://github.com/inconshreveable/gonative
|
|
|
|
|
2020-09-13 00:32:45 +00:00
|
|
|
|
|
|
|
CGO_ENABLED=0 gox -ldflags "${LDFLAGS}" -output="build/yq_{{.OS}}_{{.Arch}}"
|
2018-07-22 23:16:52 +00:00
|
|
|
# include non-default linux builds too
|
2020-09-13 00:32:45 +00:00
|
|
|
CGO_ENABLED=0 gox -ldflags "${LDFLAGS}" -os=linux -output="build/yq_{{.OS}}_{{.Arch}}"
|
2015-09-28 23:39:44 +00:00
|
|
|
|
2020-03-01 21:43:47 +00:00
|
|
|
cd build
|
|
|
|
rhash -r -a . -P -o checksums
|
|
|
|
|
2020-12-21 10:40:08 +00:00
|
|
|
rhash --list-hashes > checksums_hashes_order
|
|
|
|
|
2020-12-21 23:25:15 +00:00
|
|
|
find . | xargs -I {} tar czvf {}.tar.gz {}
|
2020-12-21 10:40:08 +00:00
|
|
|
|
2020-12-21 23:25:15 +00:00
|
|
|
rm checksums_hashes_order.tar.gz
|
|
|
|
rm checksums.tar.gz
|
|
|
|
rm yq_windows_386.exe.tar.gz
|
|
|
|
rm yq_windows_amd64.exe.tar.gz
|
2020-12-21 10:40:08 +00:00
|
|
|
|
|
|
|
zip yq_windows_386.zip yq_windows_386.exe
|
|
|
|
zip yq_windows_amd64.zip yq_windows_amd64.exe
|