From 9a0375f7a790258f7b14e322af75f7a45d33863c Mon Sep 17 00:00:00 2001 From: "honwen.chan" Date: Mon, 6 Mar 2017 14:48:18 +0800 Subject: [PATCH] fix build script of arm --- build-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-release.sh b/build-release.sh index 8ead312..3177f2e 100755 --- a/build-release.sh +++ b/build-release.sh @@ -41,7 +41,7 @@ for v in ${ARMS[@]}; do env CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=$v go build -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" -o ./release/${name}_arm$v . done if $UPX; then upx -9 ./release/${name}_arm*; fi - tar -C ./release -zcf ./release/${name}_arm-$VERSION.tar.gz ./${name}_arm* +tar -C ./release -zcf ./release/${name}_arm-$VERSION.tar.gz $(for v in ${ARMS[@]}; do echo -n "./${name}_arm$v ";done) $MD5 ./release/${name}_arm-$VERSION.tar.gz # MIPS # go 1.8+ required