From 942638b7a4b310835ec44c07dbfc3b697e3c2d01 Mon Sep 17 00:00:00 2001 From: bakape Date: Sun, 7 May 2017 14:29:11 +0300 Subject: [PATCH] Fix package.sh --- package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.sh b/package.sh index a6adbe15..7540763a 100755 --- a/package.sh +++ b/package.sh @@ -7,7 +7,7 @@ version=$(git describe --tags) declare -a OSes OSes[0]='linux;x86_64-linux-gnu-gcc' OSes[1]='windows;x86_64-w64-mingw32-gcc' -mkdir dist +mkdir -p dist for i in "${OSes[@]}"; do arr=(${i//;/ }) @@ -17,5 +17,5 @@ for i in "${OSes[@]}"; do echo -e "\nBuilding $os..." echo GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 go build -v GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 go build -v - zip -9 -q dist/nyaa-${version}_${os}_amd64.zip os css js *.md *.html nyaa nyaa.exe + zip -9 -r dist/nyaa-${version}_${os}_amd64.zip os public templates service/user/locale *.md nyaa nyaa.exe done