Skip to content

Commit

Permalink
added frontend to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Apr 23, 2018
1 parent 9179709 commit 2fb95e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ GCC=( "i686-w64-mingw32-gcc" "x86_64-w64-mingw32-gcc" "gcc" "gcc" "arm-linux-gnu
# Additional flag to allow cross compiling from 64 to 32 bit on Linux
GCC_LINUX_32BIT="-m32"

cp -r ../frontend/ .

# Use the first element of $GOPATH in the case where GOPATH is a list
# (something that is totally allowed).
GPATH=$(echo $GOPATH | cut -f1 -d:)
Expand Down Expand Up @@ -60,11 +62,13 @@ for index in ${!SYS[@]}; do
cd ..

if [[ $OS = "windows" ]]; then
zip -r $PACKAGE-${SYS[index]}-$TAG.zip $PACKAGE-${SYS[index]}-$TAG
zip -r $PACKAGE-${SYS[index]}-$TAG.zip $PACKAGE-${SYS[index]}-$TAG frontend/
else
tar -cvzf $PACKAGE-${SYS[index]}-$TAG.tar.gz $PACKAGE-${SYS[index]}-$TAG
tar -cvzf $PACKAGE-${SYS[index]}-$TAG.tar.gz $PACKAGE-${SYS[index]}-$TAG frontend/
fi

rm -r $PACKAGE-${SYS[index]}-$TAG

done

rm -rf frontend

0 comments on commit 2fb95e4

Please sign in to comment.