Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
4299e6bf
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,发现更多精彩内容 >>
提交
4299e6bf
编写于
8月 30, 2022
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add gotest support
上级
396b62c2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
10 addition
and
22 deletion
+10
-22
Makefile
Makefile
+4
-20
cmd/server/main.go
cmd/server/main.go
+6
-2
未找到文件。
Makefile
浏览文件 @
4299e6bf
...
...
@@ -68,7 +68,7 @@ compile_launcher_win64:
@
echo
'start compile win64 launcher'
@
cd
cmd/launcher
&&
\
CC
=
x86_64-w64-mingw32-gcc
CXX
=
x86_64-w64-mingw32-g++
GOOS
=
windows
GOARCH
=
amd64
\
${BUILD_CMD}
-x
-v
-ldflags
"-s -w"
\
${BUILD_CMD}
-x
-v
-ldflags
\
-o
../../
${COMMAND_BIN_DIR}
win64/
${PROJECT}
-gui
.exe
&&
\
cd
..
...
...
@@ -76,7 +76,7 @@ compile_launcher_win32:
@
echo
'start compile win32 launcher'
@
cd
cmd/launcher
&&
\
CC
=
i686-w64-mingw32-gcc
CXX
=
i686-w64-mingw32-g++
GOOS
=
windows
GOARCH
=
386
\
${BUILD_CMD}
-x
-v
-ldflags
"-s -w"
\
${BUILD_CMD}
-x
-v
-ldflags
\
-o
../../
${COMMAND_BIN_DIR}
win32/
${PROJECT}
-gui
.exe
&&
\
cd
..
...
...
@@ -86,7 +86,7 @@ compile_gui_win64:
@
echo
'start compile win64'
@
rm
-rf
./
${CLIENT_BIN_DIR}
/
*
@
CGO_ENABLED
=
1
CC
=
x86_64-w64-mingw32-gcc
CXX
=
x86_64-w64-mingw32-g++
GOOS
=
windows
GOARCH
=
amd64
\
${BUILD_CMD}
-x
-v
-ldflags
"-s -w"
\
${BUILD_CMD}
-x
-v
\
-o
${CLIENT_BIN_DIR}
win32/
${PROJECT}
.exe
${SERVER_MAIN_FILE}
package_gui_win64_client
:
@
cd
client
&&
npm run package-win64
&&
cd
..
...
...
@@ -98,7 +98,7 @@ compile_gui_win32:
@
echo
'start compile win32'
@
rm
-rf
./
${CLIENT_BIN_DIR}
/
*
@
CGO_ENABLED
=
1
CC
=
i686-w64-mingw32-gcc
CXX
=
i686-w64-mingw32-g++
GOOS
=
windows
GOARCH
=
386
\
${BUILD_CMD}
-x
-v
-ldflags
"-s -w"
\
${BUILD_CMD}
-x
-v
\
-o
${CLIENT_BIN_DIR}
win32/
${PROJECT}
.exe
${SERVER_MAIN_FILE}
package_gui_win32_client
:
@
cd
client
&&
npm run package-win32
&&
cd
..
...
...
@@ -194,22 +194,6 @@ copy_files_mac:
cp
-r
demo
"
${CLIENT_OUT_DIR}
darwin"
cp
${COMMAND_BIN_DIR}
darwin/
*
"
${CLIENT_OUT_DIR}
darwin"
#create_shortcut_win64:
# @echo 'create shortcut win64'
# cp xdoc/ztf-gui.cmd "${CLIENT_OUT_DIR}win64"
#
#create_shortcut_win32:
# @echo 'create shortcut win32'
# cp xdoc/ztf-gui.cmd "${CLIENT_OUT_DIR}win32"
#
#create_shortcut_linux:
# @echo 'create shortcut linux'
# cp xdoc/ztf-gui-linux.sh ${CLIENT_OUT_DIR}linux/ztf-gui.sh
#
#create_shortcut_mac:
# @echo 'create shortcut mac'
# cp xdoc/ztf-gui-mac.sh ${CLIENT_OUT_DIR}darwin/ztf-gui.sh
zip_win64
:
@
echo
'start zip win64'
@
find
.
-name
.DS_Store
-print0
| xargs
-0
rm
-f
...
...
cmd/server/main.go
浏览文件 @
4299e6bf
...
...
@@ -2,7 +2,6 @@ package main
import
(
"flag"
commConsts
"github.com/easysoft/zentaoatf/internal/pkg/consts"
websocketHelper
"github.com/easysoft/zentaoatf/internal/pkg/helper/websocket"
"github.com/easysoft/zentaoatf/internal/server/core/cron"
"github.com/easysoft/zentaoatf/internal/server/core/web"
...
...
@@ -11,6 +10,11 @@ import (
)
var
(
AppVersion
string
BuildTime
string
GoVersion
string
GitHash
string
port
=
0
uuid
=
""
)
...
...
@@ -31,7 +35,7 @@ func main() {
switch
os
.
Args
[
1
]
{
case
"version"
,
"--version"
:
logUtils
.
PrintVersion
(
commConsts
.
AppVersion
,
commConsts
.
BuildTime
,
commConsts
.
GoVersion
,
commConsts
.
GitHash
)
logUtils
.
PrintVersion
(
AppVersion
,
BuildTime
,
GoVersion
,
GitHash
)
return
default
:
webServer
:=
web
.
Init
(
port
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录