1 Star 0 Fork 11

skymysky/godbart

forked from trydofor/godbart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 517 Bytes
一键复制 编辑 原始数据 按行查看 历史
trydofor 提交于 2018-12-08 06:03 . tree run test 2/3
#!/bin/bash
project="godbart"
release=./release
cd $(dirname $0)
rm -rf $release/
mkdir -p $release
#gofmt -w ./
# build
for goos in "linux" "darwin" "freebsd" "windows"; do
if [ "$goos" == "windows" ]; then
obj_name=$project.exe
else
obj_name=$project
fi
GOOS=$goos GOARCH=amd64 go build
zip -m $release/$project-$goos-amd64.zip $obj_name
# GOOS=$goos GOARCH=386 go build
# zip -m $release/$project-$goos-386.zip $obj_name
done
# md5sum
cd $release
md5sum * >> md5sum.txt
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/skymysky/godbart.git
git@gitee.com:skymysky/godbart.git
skymysky
godbart
godbart
master

搜索帮助