chore: build windows packages on release (#490)

This commit is contained in:
Jeffrey Smith II 2023-04-05 13:12:26 -04:00 committed by GitHub
parent 02a094a4b1
commit a5a89b41f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,16 @@ build_archive()
pushd "${workspace}"
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.tar.gz"
if [[ ${OS} != windows ]]
then
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.tar.gz"
tar -czf "${target}" .
else
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.zip"
zip -r "${target}" .
fi
tar -czf "${target}" .
# generate signature and checksums
generate_signature "${target}"
@ -148,4 +155,7 @@ case ${OS} in
darwin)
build_archive
;;
windows)
build_archive
;;
esac