From 7b163c1fbfff09c8d02e490e1d404b575a2f47d0 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Wed, 14 Mar 2018 22:51:32 +0800 Subject: [PATCH] Fix build.sh Signed-off-by: Jianhui Zhao --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 5a188d2..0adb58d 100755 --- a/build.sh +++ b/build.sh @@ -1,15 +1,15 @@ #!/bin/sh -export GOARCH="amd64" - -go build cp -r root root_tmp +mkdir -p root_tmp/usr/local/bin + +export GOARCH="amd64" +go build mv rttys root_tmp/usr/local/bin tar zcvf rttys-x64.tar.gz -C root_tmp/ etc usr export GOARCH="386" - go build mv rttys root_tmp/usr/local/bin tar zcvf rttys.tar.gz -C root_tmp/ etc usr