7 Star 7 Fork 8

暴走皮皮虾 / bzppx-agent-codepub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pack.sh 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
arraykeys@gmail.com 提交于 2018-05-02 14:07 . v0.8.3
#!/bin/bash
VER=$1
if [ "$VER" = "" ]; then
echo 'please input pack version!'
exit 1
fi
RELEASE="release-${VER}"
rm -rf ${RELEASE}
mkdir ${RELEASE}
# windows amd64
echo 'Start pack windows amd64...'
GOOS=windows GOARCH=amd64 go build
tar -czvf "${RELEASE}/bzppx-agent-codepub-windows-amd64.tar.gz" bzppx-agent-codepub.exe config.toml cert/ log/.gitignore LICENSE README.md
rm -rf bzppx-agent-codepub.exe
echo 'Start pack windows X386...'
GOOS=windows GOARCH=386 go build
tar -czvf "${RELEASE}/bzppx-agent-codepub-windows-386.tar.gz" bzppx-agent-codepub.exe config.toml cert/ log/.gitignore LICENSE README.md
rm -rf bzppx-agent-codepub.exe
echo 'Start pack linux amd64'
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w"
tar -czvf "${RELEASE}/bzppx-agent-codepub-linux-amd64.tar.gz" bzppx-agent-codepub config.toml cert/ log/.gitignore LICENSE README.md
rm -rf bzppx-agent-codepub
echo 'Start pack linux 386'
GOOS=linux GOARCH=386 go build -ldflags "-s -w"
tar -czvf "${RELEASE}/bzppx-agent-codepub-linux-386.tar.gz" bzppx-agent-codepub config.toml cert/ log/.gitignore LICENSE README.md
rm -rf bzppx-agent-codepub
echo 'Start pack mac amd64'
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w"
tar -czvf "${RELEASE}/bzppx-agent-codepub-mac-amd64.tar.gz" bzppx-agent-codepub config.toml cert/ log/.gitignore LICENSE README.md
rm -rf bzppx-agent-codepub
echo 'END'
Go
1
https://gitee.com/bzppx/bzppx-agent-codepub.git
git@gitee.com:bzppx/bzppx-agent-codepub.git
bzppx
bzppx-agent-codepub
bzppx-agent-codepub
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891