Skip to content

Commit

Permalink
fix build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Sep 23, 2014
1 parent 18e6fa7 commit 28da994
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cp -r ../../img . && \
cp ../../*.json . && \
cp ../../*.htm* . && \
cp ../../*.png . && \
cp -r ../../fonts . && \
cp -r ../../node_modules . || \
exit 1
rm ../app.nw
Expand All @@ -25,7 +26,7 @@ rm -rf app || \
exit 1
for platform in linux-x64 win-ia32
do
if [ -f shadowsocks-gui-$1-$platform.tar.gz ]; then
if [ -f shadowsocks-gui-$1-$platform.tar.xz ]; then
continue
fi
if [ ! -f node-webkit-$NW_VERSION-$platform.zip ] ; then
Expand Down Expand Up @@ -72,9 +73,9 @@ do
exit 1
fi
popd && \
tar zcf shadowsocks-gui-$1-$platform.tar.gz shadowsocks-gui-$1-$platform && \
tar Jcf shadowsocks-gui-$1-$platform.tar.xz shadowsocks-gui-$1-$platform && \
rm -r shadowsocks-gui-$1-$platform && \
rsync --progress -e ssh shadowsocks-gui-$1-$platform.tar.gz frs.sourceforge.net:/home/frs/project/shadowsocksgui/dist/shadowsocks-gui-$1-$platform.tar.gz || \
rsync --progress -e ssh shadowsocks-gui-$1-$platform.tar.xz frs.sourceforge.net:/home/frs/project/shadowsocksgui/dist/shadowsocks-gui-$1-$platform.tar.xz || \
exit 1
done
popd

0 comments on commit 28da994

Please sign in to comment.