Skip to content

Commit 7b86241

Browse files
author
Francesco Faraone
committed
package with zip on windows
1 parent d536ccd commit 7b86241

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

package.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
#!/bin/bash
22

3+
set -e
4+
5+
6+
37
echo "Run pyinstaller..."
48

59
pyinstaller resources/ccli.spec
610

711
echo "Create tarball for $TRAVIS_OS_NAME -> $TRAVIS_CPU_ARCH..."
812

9-
tar cvfz product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.tar.gz dist
13+
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
14+
tar.exe -a -c -f product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.zip dist
15+
else
16+
tar cvfz product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.tar.gz dist
17+
fi
18+
19+
1020
rm -rf dist
1121

1222
echo "product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.tar.gz ready!"

0 commit comments

Comments
 (0)