Fix build.sh

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-03-14 22:51:32 +08:00
parent e188828bb4
commit 7b163c1fbf
+4 -4
View File
@@ -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