From 5fa42a829be8303bf3d3726ecac13c02310ec832 Mon Sep 17 00:00:00 2001 From: vyshakhp Date: Tue, 17 Jul 2018 12:43:08 +0530 Subject: [PATCH] build file updated --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 8645fc5..e06e854 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ #!/bin/sh BINVERSION="0.1.0" +#archs=( "linux.amd64") archs=( "linux.amd64" "linux.386" "darwin.amd64" "darwin.386" ) rm -rf bin @@ -9,6 +10,8 @@ for i in "${archs[@]}" do rm helmez/helmez-bin binurl="https://github.com/ysaakpr/helmez-bin/releases/download/${BINVERSION}/helmez-bin.${i}" -curl -o helmez/helmez-bin ${binurl} -tar -zcvf bin/helmez-${i}.tar.gz helmez/ +curl -L -o helmez/helmez-bin ${binurl} +cd helmez +tar -cvf ../bin/helmez-${i}.tar.gz . +cd ../ done \ No newline at end of file