Skip to content

Commit 5488fb7

Browse files
committed
Windows target should output zip package
1 parent 4b2a315 commit 5488fb7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build/build-release

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ function build() {
1313
echo "* Building ${TARGET} package ${VERSION} ..."
1414

1515
RELEASE_DIR="target/${TARGET}/release"
16-
PKG_NAME="shadowsocks-v${VERSION}-stable.${TARGET}.tar.xz"
17-
PKG_PATH="${CUR_DIR}/${PKG_NAME}"
1816

1917
cross build --target "${TARGET}" \
2018
--features "miscreant" \
@@ -25,6 +23,9 @@ function build() {
2523
fi
2624

2725
if [[ "$TARGET" == *"-linux-"* ]]; then
26+
PKG_NAME="shadowsocks-v${VERSION}-stable.${TARGET}.tar.xz"
27+
PKG_PATH="${CUR_DIR}/${PKG_NAME}"
28+
2829
echo "* Packaging XZ in ${PKG_PATH} ..."
2930
cd ${RELEASE_DIR}
3031
tar -cJf ${PKG_PATH} \
@@ -37,6 +38,9 @@ function build() {
3738
exit $?
3839
fi
3940
elif [[ "$TARGET" == *"-windows-"* ]]; then
41+
PKG_NAME="shadowsocks-v${VERSION}-stable.${TARGET}.zip"
42+
PKG_PATH="${CUR_DIR}/${PKG_NAME}"
43+
4044
echo "* Packaging ZIP in ${PKG_PATH} ..."
4145
cd ${RELEASE_DIR}
4246
zip ${PKG_PATH} \

0 commit comments

Comments
 (0)