From 2fb95e45a4176cc5215f97e06d68f7bc8b5aeb7e Mon Sep 17 00:00:00 2001 From: michael1011 Date: Mon, 23 Apr 2018 19:23:26 +0200 Subject: [PATCH] added frontend to release script --- release.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 1dfe8b4..f15b865 100755 --- a/release.sh +++ b/release.sh @@ -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:) @@ -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 \ No newline at end of file