Skip to content

Commit 401f3a4

Browse files
chore: build windows packages on release (#491)
1 parent 02a094a commit 401f3a4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/ci/build-packages

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ build_archive()
2929

3030
pushd "${workspace}"
3131

32-
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.tar.gz"
32+
if [[ ${OS} != windows ]]
33+
then
34+
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.tar.gz"
35+
36+
tar -czf "${target}" .
37+
else
38+
local target="${PKG_OUT_PATH}/influxdb2-client-${VERSION}_${OS}_${ARCH}.zip"
39+
zip -r "${target}" .
40+
fi
3341

34-
tar -czf "${target}" .
3542

3643
# generate signature and checksums
3744
generate_signature "${target}"
@@ -148,4 +155,7 @@ case ${OS} in
148155
darwin)
149156
build_archive
150157
;;
158+
windows)
159+
build_archive
160+
;;
151161
esac

0 commit comments

Comments
 (0)