diff --git a/crossbuild.sh b/crossbuild.sh index a1c553324..7b52cb966 100644 --- a/crossbuild.sh +++ b/crossbuild.sh @@ -1,2 +1,8 @@ #!/bin/bash -./cbuild gluster_0.6 src/gapp/gluster/gluster.go \ No newline at end of file +# 生成交叉编译的可执行文件cbuild +go build src/gapp/cbuild/cbuild.go +# 开始交叉编译gluster +#./cbuild src/gapp/gluster/gluster.go --name=gluster --version=0.6 --arch=386,amd64 --os=linux,windows,darwin,freebsd,openbsd +./cbuild src/gapp/gluster/gluster.go --name=gluster --version=0.6 --arch=386,amd64 --os=linux,windows +# 删除临时可文件 +rm cbuild \ No newline at end of file