12345678910111213141516171819202122 |
- export LANG=zh_CN.utf8
- export LC_ALL=zh_CN.utf8
- installpath=`go env GOPATH | awk -F ':' '{print $1}'`/bin
- #改变工作目录到当前脚本所在路径
- if [[ "$0" =~ / ]]; then cd "${0%/*}"; fi
- cd ./mssh
- CGO_ENABLED=0 GOOS=windows go build -o ../bin/mssh.exe
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../bin/mssh
- CGO_ENABLED=0 go build -o ../bin/mssh_mac
- cd ..
- cd ./msh
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../bin/msh
- CGO_ENABLED=0 go build -o ../bin/msh_mac
- cd ..
- cp ./bin/* ${installpath}/matrix/zerone/
- echo copied to ${installpath}/matrix/zerone/
|