Skip to content

Commit a214ef5

Browse files
committed
add win package
1 parent 23ee7d8 commit a214ef5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

distribute/distribute.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,22 @@ mkdir $name
2222
cp ../README.md $name/README
2323
cp ../LICENSE* $name/
2424
cp -a ../silhouette $name/
25-
cp ../*.py ../*.inx ../Makefile $name/
26-
cp ../*.sh ../*.rules ../*.png $name/
25+
cp ../*silhouette*.py ../*.inx $name/
26+
27+
28+
echo "****************************************************************"
29+
echo "Build Windows Version (Y/n)?"
30+
read answer
31+
if [ "$answer" != "n" ]
32+
then
33+
mkdir -p out
34+
zip -r out/$name-winpackage_$VERSION.zip $name --exclude \*.pyc \*__pycache__\*
35+
zip -j out/$name-winpackage_$VERSION.zip win/*
36+
fi
37+
38+
39+
# add linux-specific content
40+
cp ../*.sh ../*.rules ../*.png ../Makefile $name/
2741

2842

2943
echo "****************************************************************"

0 commit comments

Comments
 (0)