1 Star 0 Fork 57

yanglbsjz/bzppx-codepub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pack.sh 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
phachon 提交于 2018-03-22 10:53 . add pak mac amd64
#!/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 get ./...
GOOS=windows GOARCH=amd64 go build ./
cd install
GOOS=windows GOARCH=amd64 go build ./
cd ..
tar -czvf "${RELEASE}/bzppx-codepub-windows-amd64.tar.gz" bzppx-codepub.exe conf/ docs/ logs/.gitignore static/ views/ install/install.exe LICENSE README.md
rm -rf bzppx-codepub.exe
echo 'Start pack windows X386...'
GOOS=windows GOARCH=386 go get ./...
GOOS=windows GOARCH=386 go build ./
cd install
GOOS=windows GOARCH=386 go build ./
cd ..
tar -czvf "${RELEASE}/bzppx-codepub-windows-386.tar.gz" bzppx-codepub.exe conf/ docs/ logs/.gitignore static/ views/ install/install.exe LICENSE README.md
rm -rf bzppx-codepub.exe
echo 'Start pack linux amd64'
GOOS=linux GOARCH=amd64 go get ./...
GOOS=linux GOARCH=amd64 go build ./
cd install
GOOS=linux GOARCH=amd64 go build ./
cd ..
tar -czvf "${RELEASE}/bzppx-codepub-linux-amd64.tar.gz" bzppx-codepub conf/ docs/ logs/.gitignore static/ views/ install/install LICENSE README.md
rm -rf bzppx-codepub
echo 'Start pack linux 386'
GOOS=linux GOARCH=386 go get ./...
GOOS=linux GOARCH=386 go build ./
cd install
GOOS=linux GOARCH=386 go build ./
cd ..
tar -czvf "${RELEASE}/bzppx-codepub-linux-386.tar.gz" bzppx-codepub conf/ docs/ logs/.gitignore static/ views/ install/install LICENSE README.md
rm -rf bzppx-codepub
echo 'Start pack mac amd64'
GOOS=darwin GOARCH=amd64 go get ./...
GOOS=darwin GOARCH=amd64 go build ./
cd install
GOOS=darwin GOARCH=amd64 go build ./
cd ..
tar -czvf "${RELEASE}/bzppx-codepub-mac-amd64.tar.gz" bzppx-codepub conf/ docs/ logs/.gitignore static/ views/ install/install LICENSE README.md
rm -rf bzppx-codepub
echo 'END'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yanglbsjz/bzppx-codepub.git
git@gitee.com:yanglbsjz/bzppx-codepub.git
yanglbsjz
bzppx-codepub
bzppx-codepub
master

搜索帮助