提交 37723d88 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update Makefile

上级 65bb9ba7
VERSION=1.8
VERSION=2.0
PROJECT=ztf
QINIU_DIR=/Users/aaron/work/zentao/qiniu/
QINIU_DIST_DIR=${QINIU_DIR}${PROJECT}/${VERSION}/
......@@ -55,7 +55,13 @@ package:
@for platform in `ls ${BIN_OUT}`; do mkdir -p ${QINIU_DIST_DIR}$${platform}; done
@cd ${BIN_OUT} && \
for platform in `ls ./`; do cd $${platform} && zip -r ${QINIU_DIST_DIR}$${platform}/${BINARY}.zip ${BINARY} && cd ..; done
for platform in `ls ./`; \
do cd $${platform} && \
zip -r ${QINIU_DIST_DIR}$${platform}/${BINARY}.zip ${BINARY} && \
md5sum ${QINIU_DIST_DIR}$${platform}/${BINARY}.zip | awk '{print $$1}' | \
xargs echo > ${QINIU_DIST_DIR}$${platform}/${BINARY}.zip.md5 && \
cd ..; \
done
update_version_in_config:
@gsed -i "s/Version.*/Version = ${VERSION}/" conf/ztf.conf
......@@ -69,7 +75,4 @@ upload_to:
@echo 'upload...'
@find ${QINIU_DIR} -name ".DS_Store" -type f -delete
@qshell qupload2 --src-dir=${QINIU_DIR} --bucket=download --thread-count=10 --log-file=qshell.log \
--skip-path-prefixes=zendata --rescan-local
@qshell qupload2 --src-dir=${QINIU_DIR} --bucket=download --thread-count=10 --log-file=qshell.log \
--file-list=${PROJECT}/version.txt --rescan-local --overwrite
--skip-path-prefixes=zendata --rescan-local --overwrite --check-hash
\ No newline at end of file
Version = 2.9
Version = 2.0
Language = zh
Url = http://zentaopms.ngtesting.com/
Account = admin
......
......@@ -10,6 +10,7 @@ import (
serverConst "github.com/easysoft/zentaoatf/src/server/utils/const"
constant "github.com/easysoft/zentaoatf/src/utils/const"
fileUtils "github.com/easysoft/zentaoatf/src/utils/file"
logUtils "github.com/easysoft/zentaoatf/src/utils/log"
"github.com/easysoft/zentaoatf/src/utils/vari"
"io"
"io/ioutil"
......@@ -51,7 +52,10 @@ func (s *Server) Init() {
vari.IP, vari.MAC = serverUtils.GetIp()
vari.AgentLogDir = vari.ZTFDir + serverConst.AgentLogDir + constant.PthSep
fileUtils.MkDirIfNeeded(vari.AgentLogDir)
err := fileUtils.MkDirIfNeeded(vari.AgentLogDir)
if err != nil {
logUtils.PrintTof("mkdir %s error %s", vari.AgentLogDir, err.Error())
}
}
func (s *Server) Run() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册