Skip to content

Commit

Permalink
package with zip on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Faraone committed Sep 14, 2020
1 parent d536ccd commit 7b86241
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
#!/bin/bash

set -e



echo "Run pyinstaller..."

pyinstaller resources/ccli.spec

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

tar cvfz product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.tar.gz dist
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
tar.exe -a -c -f product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.zip dist
else
tar cvfz product-sync_${TRAVIS_TAG}_${TRAVIS_OS_NAME}_${TRAVIS_CPU_ARCH}.tar.gz dist
fi


rm -rf dist

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

0 comments on commit 7b86241

Please sign in to comment.