Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
37723d88
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
大约 1 年 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
37723d88
编写于
12月 31, 2020
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update Makefile
上级
65bb9ba7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
8 deletion
+15
-8
Makefile
Makefile
+9
-6
conf/ztf.conf
conf/ztf.conf
+1
-1
src/server/server.go
src/server/server.go
+5
-1
未找到文件。
Makefile
浏览文件 @
37723d88
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
conf/ztf.conf
浏览文件 @
37723d88
Version
=
2
.
9
Version
=
2
.
0
Language
=
zh
Url
=
http
://
zentaopms
.
ngtesting
.
com
/
Account
=
admin
...
...
src/server/server.go
浏览文件 @
37723d88
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录