Skip to content

Commit

Permalink
chore: build windows packages on release (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyssmith2nd committed Apr 5, 2023
1 parent 02a094a commit 401f3a4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/ci/build-packages
Expand Up @@ -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}"
Expand Down Expand Up @@ -148,4 +155,7 @@ case ${OS} in
darwin)
build_archive
;;
windows)
build_archive
;;
esac

0 comments on commit 401f3a4

Please sign in to comment.