代码拉取完成,页面将自动刷新
# build gossh and passtool
# support architecture: amd64 386
# suporrt os: linux and windows
# authur: andes
# email: email.tata@qq.com
#!/bin/bash
workhome=$(cd $(dirname $0) && pwd)
binpath=${workhome}/bin
oss=(linux windows)
arches=(amd64 386 arm64)
target=(gossh passtool)
for arch in ${arches[@]};do
for os in ${oss[@]};do
for t in ${target[@]};do
if [[ ${arch} == "arm64" && ${os} == "windows" ]];then
continue
fi
cmd="CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build"
echo "${cmd} ${t}.go"
eval ${cmd} ${t}.go
if [[ ! -d ${binpath}/${arch}/${os} ]];then
mkdir -p ${binpath}/${arch}/${os}
fi
if [[ "${os}" == "windows" ]];then
mv ${t}.exe ${binpath}/${arch}/${os}
else
mv ${t} ${binpath}/${arch}/${os}
fi
done
done
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。