16 Star 0 Fork 2

cloudzone / cloudcds-go-console

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build 699 Bytes
一键复制 编辑 原始数据 按行查看 历史
tianyuliang 提交于 2018-01-29 17:21 . feature: add build.sh
#!/bin/bash
WORKSPACE=$(cd $(dirname $0)/; pwd)
cd $WORKSPACE
# module name
module=main
app=webconsole
rm -rf bin
mkdir -p ./bin ./bin/conf ./bin/var ./bin/log
cd $GOPATH/src/git.oschina.net/cloudzone/cloudcds-go-console/
# copy gitversion
git log -1 --pretty=%h > ./bin/gitversion
# copy binary file
go build ./console/main.go
mv $module ./bin/
# copy resource
cp -rf ./static ./bin/
cp -rf ./template ./bin/
cp -rf ./conf/conf.example.json ./bin/conf/conf.example.json
cp -rf ./conf/mime.types ./bin/conf/mime.types
# build package
version=1.0.0
echo version > ./bin/version
# build tar.gz
cd ./bin
tar -zcvf $app-$version.tar.gz $module gitversion ./conf/ ./static ./template
Go
1
https://gitee.com/cloudzone/cloudcds-go-console.git
git@gitee.com:cloudzone/cloudcds-go-console.git
cloudzone
cloudcds-go-console
cloudcds-go-console
dev

搜索帮助