Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
ad7ecc40
Z
zendata
项目概览
易企天创
/
zendata
10 个月 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ad7ecc40
编写于
3月 01, 2023
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix issues
上级
352678bb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
6 deletion
+14
-6
Makefile
Makefile
+8
-4
client/src/app/utils/hot-update.js
client/src/app/utils/hot-update.js
+5
-1
ui/vue.config.js
ui/vue.config.js
+1
-1
未找到文件。
Makefile
浏览文件 @
ad7ecc40
...
...
@@ -42,15 +42,20 @@ GIT_HASH=`git show -s --format=%H`
BUILD_CMD_UNIX
=
go build
-ldflags
"-X 'main.AppVersion=
${VERSION}
' -X 'main.BuildTime=
${BUILD_TIME}
' -X 'main.GoVersion=
${GO_VERSION}
' -X 'main.GitHash=
${GIT_HASH}
'"
BUILD_CMD_WIN
=
go build
-ldflags
"-s -w -X 'main.AppVersion=
${VERSION}
' -X 'main.BuildTime=
${BUILD_TIME}
' -X 'main.GoVersion=
${GO_VERSION}
' -X 'main.GitHash=
${GIT_HASH}
'"
prepare_build
:
update_version_in_config gen_version_file prepare_res
prepare_build
:
clear update_version_in_config gen_version_file prepare_res
clear
:
@
rm
-rf
${BIN_DIR}
@
rm
-rf
${CLIENT_OUT_DIR}
default
:
build_ui prepare_build compile_all copy_files package package_upgrade
default
:
clear
build_ui prepare_build compile_all copy_files package package_upgrade
win64
:
prepare_build compile_launcher_win64 compile_server_win64 package_gui_win64_client compile_command_win64 copy_files package package_upgrade
win32
:
prepare_build compile_launcher_win32 compile_server_win32 package_gui_win32_client compile_command_win32 copy_files package package_upgrade
linux
:
prepare_build compile_server_linux package_gui_linux_client compile_command_linux copy_files package package_upgrade
mac
:
prepare_build compile_server_mac package_gui_mac_client compile_command_mac copy_files package package_upgrade
compile_all
:
compile_win64 compile_win32 compile_linux compile_mac
compile_win64
:
compile_launcher_win64 compile_server_win64 package_gui_win64_client compile_command_win64
compile_win32
:
compile_launcher_win32 compile_server_win32 package_gui_win32_client compile_command_win32
compile_linux
:
compile_server_linux package_gui_linux_client compile_command_linux
...
...
@@ -63,11 +68,10 @@ prepare_res:
@
cp
res/zh/sample.yaml demo/default.yaml
@
rm
-rf
${BIN_DIR}
compile_all
:
compile_win64 compile_win32 compile_linux compile_mac
build_ui
:
@
echo
'compile ui'
@
cd
ui
&&
yarn build
&&
cd
..
@
cd
ui
&&
yarn build
--dest
../client/ui
&&
cd
..
compile_server_win64
:
@
echo
'start compile win64'
...
...
client/src/app/utils/hot-update.js
浏览文件 @
ad7ecc40
...
...
@@ -66,11 +66,15 @@ export const downLoadAndUpdateApp = (version, mainWin) => {
logInfo
(
`success to downloaded to
${
downloadPath
}
`
)
const
md5Pass
=
await
checkMd5
(
version
,
downloadPath
)
logInfo
(
`md5Pass
${
md5Pass
}
`
)
if
(
md5Pass
)
{
await
copyFiles
(
downloadPath
);
logInfo
(
`1
${
md5Pass
}
`
)
changeVersion
(
version
);
logInfo
(
`2
${
md5Pass
}
`
)
mainWin
.
webContents
.
send
(
electronMsgDownloadSuccess
,
{})
mainWin
.
webContents
.
send
(
electronMsgDownloadSuccess
,
{
success
:
true
})
logInfo
(
`3
${
md5Pass
}
`
)
}
else
{
throw
new
Error
(
'
check md5 failed
'
)
}
...
...
ui/vue.config.js
浏览文件 @
ad7ecc40
...
...
@@ -6,7 +6,7 @@ function resolve(dir) {
module
.
exports
=
{
// productionSourceMap: false,
publicPath
:
process
.
env
.
NODE_ENV
===
'
production
'
&&
!
process
.
env
.
UI_IN_CLIENT
?
'
ui
'
:
''
,
publicPath
:
''
,
chainWebpack
:
(
config
)
=>
{
config
.
resolve
.
alias
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录