Skip to content

Commit

Permalink
update build.sh: support more arch
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
Jianhui Zhao committed Oct 5, 2018
1 parent 8bb559a commit 9ccd0c7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#!/bin/sh

golang-statik -src html/dist/
targets=linux/386,linux/amd64,linux/arm,linux/arm64,linux/mips,linux/mips64,linux/mipsle,linux/mips64le,windows/*,darwin/*

cp -r root root_tmp
mkdir -p root_tmp/usr/local/bin

go build
mv rttys root_tmp/usr/local/bin
tar zcvf rttys-x64.tar.gz -C root_tmp/ etc usr
rm root_tmp -r

rm -r statik
xgo --targets=$targets .

0 comments on commit 9ccd0c7

Please sign in to comment.