Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
da6d36a9
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
da6d36a9
编写于
3月 13, 2023
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make arm64 version for linux
上级
333b6c16
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
45 addition
and
14 deletion
+45
-14
Makefile
Makefile
+44
-13
xdoc/notes.txt
xdoc/notes.txt
+1
-1
未找到文件。
Makefile
浏览文件 @
da6d36a9
...
...
@@ -34,16 +34,18 @@ BUILD_CMD=go build -ldflags "-X 'main.AppVersion=${VERSION}' -X 'main.BuildTime=
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}
'"
default
:
win64 win32 linux mac
server
:
server_win64 server_win32 server_linux server_mac
server
:
server_win64 server_win32 server_linux server_
linux_arm64 server_
mac
server_win64
:
prepare compile_server_mac copy_files_win64 zip_server_win64
server_win32
:
prepare compile_server_win32 copy_files_win32 zip_server_win32
server_linux
:
prepare compile_server_linux copy_files_linux zip_server_linux
server_linux_arm64
:
prepare compile_server_linux_arm64 copy_files_linux_arm64 zip_server_linux_arm64
server_mac
:
prepare compile_server_mac copy_files_mac zip_server_mac
win64
:
prepare compile_server_win64 package_gui_win64_client compile_launcher_win64 compile_command_win64 copy_files_win64 zip_server_win64 zip_client_win64
win32
:
prepare compile_server_win32 package_gui_win32_client compile_launcher_win32 compile_command_win32 copy_files_win32 zip_server_win32 zip_client_win32
linux
:
prepare compile_server_linux package_gui_linux_client compile_command_linux copy_files_linux zip_server_linux zip_client_linux
linux_arm
:
prepare compile_server_linux_arm64 package_gui_linux_client_arm64 compile_command_linux_arm64 copy_files_linux_arm64 zip_server_linux_arm64 zip_client_linux_arm64
mac
:
prepare compile_server_mac package_gui_mac_client compile_command_mac copy_files_mac zip_server_mac zip_client_mac
prepare
:
update_version prepare_res
...
...
@@ -114,6 +116,13 @@ else
-o
${COMMAND_BIN_DIR}
linux/
${PROJECT}
-server
${SERVER_MAIN_FILE}
endif
compile_server_linux_arm64
:
@
echo
'start compile server linux for arm64'
@
rm
-rf
${COMMAND_BIN_DIR}
linux_arm64/
${PROJECT}
-server
@
CGO_ENABLED
=
1
GOOS
=
linux
GOARCH
=
arm64
GOARM
=
7
CC
=
aarch64-linux-gnu-gcc
CXX
=
aarch64-linux-gnu-g++
AR
=
aarch64-linux-gnu-ar
\
${BUILD_CMD}
\
-o
${COMMAND_BIN_DIR}
linux_arm64/
${PROJECT}
-server
${SERVER_MAIN_FILE}
compile_server_mac
:
@
echo
'start compile mac'
@
rm
-rf
${COMMAND_BIN_DIR}
darwin/
${PROJECT}
-server
...
...
@@ -149,6 +158,11 @@ package_gui_linux_client:
@rm
-rf
${CLIENT_OUT_DIR}linux
&&
mkdir
${CLIENT_OUT_DIR}linux
&&
\
mv
${CLIENT_OUT_DIR}${PROJECT}-linux-x64
${CLIENT_OUT_DIR}linux/gui
package_gui_linux_client_arm64
:
@
echo
'start package gui linux for arm64'
@
rm
-rf
${CLIENT_BIN_DIR}
/
*
&&
mkdir
${CLIENT_BIN_DIR}
linux_arm64
@
cp
-rf
${COMMAND_BIN_DIR}
linux_arm64/
${PROJECT}
-server
${CLIENT_BIN_DIR}
linux_arm64/
${PROJECT}
package_gui_mac_client
:
@
echo
'start package gui mac'
@
rm
-rf
${CLIENT_BIN_DIR}
/
*
&&
mkdir
${CLIENT_BIN_DIR}
darwin
...
...
@@ -185,15 +199,13 @@ else
endif
compile_command_linux_arm64
:
@
echo
'start compile linux'
@
echo
'start compile linux for arm64'
CGO_ENABLED
=
1
GOOS
=
linux
GOARCH
=
arm64
GOARM
=
7
CC
=
aarch64-linux-gnu-gcc
CXX
=
aarch64-linux-gnu-g++
AR
=
aarch64-linux-gnu-ar
\
${BUILD_CMD}
\
-o
${COMMAND_BIN_DIR}
linux
/
${PROJECT}
_arm64
${COMMAND_MAIN_FILE}
-o
${COMMAND_BIN_DIR}
linux
_arm64/
${PROJECT}
${COMMAND_MAIN_FILE}
compile_command_mac
:
@
echo
'start compile darwin'
@
echo
@
CGO_ENABLED
=
1
GOOS
=
darwin
GOARCH
=
amd64
\
${BUILD_CMD}
\
-o
${COMMAND_BIN_DIR}
darwin/
${PROJECT}
${COMMAND_MAIN_FILE}
...
...
@@ -218,6 +230,10 @@ copy_files_linux:
@
cp
-r
demo
"
${COMMAND_BIN_DIR}
linux"
@
cp
${COMMAND_BIN_DIR}
linux/ztf
"
${CLIENT_OUT_DIR}
linux"
copy_files_linux_arm64
:
@
echo
'start copy files linux for arm64'
@
cp
-r
demo
"
${COMMAND_BIN_DIR}
linux_arm64"
copy_files_mac
:
@
echo
'start copy files darwin'
@
cp
-r
demo
"
${CLIENT_OUT_DIR}
darwin"
...
...
@@ -240,6 +256,11 @@ zip_server_linux:
@
md5sum
${QINIU_DIST_DIR}
linux/
${PROJECT}
-server
.zip |
awk
'{print $$1}'
|
\
xargs
echo
>
${QINIU_DIST_DIR}
linux/
${PROJECT}
-server
.zip.md5
zip_server_linux_arm64
:
@
cd
${COMMAND_BIN_DIR}
linux_arm64
&&
zip
-ry
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
-server
.zip ./demo ./
${PROJECT}
-server
&&
cd
../..
@
md5sum
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
-server
.zip |
awk
'{print $$1}'
|
\
xargs
echo
>
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
-server
.zip.md5
zip_server_mac
:
@
cd
${COMMAND_BIN_DIR}
darwin
&&
zip
-ry
${QINIU_DIST_DIR}
darwin/
${PROJECT}
-server
.zip ./demo ./
${PROJECT}
-server
&&
cd
../..
@
md5sum
${QINIU_DIST_DIR}
darwin/
${PROJECT}
-server
.zip |
awk
'{print $$1}'
|
\
...
...
@@ -276,6 +297,16 @@ zip_client_linux:
xargs
echo
>
${QINIU_DIST_DIR}
linux/
${PROJECT}
.zip.md5
&&
\
cd
../..
;
\
zip_client_linux_arm64
:
@
echo
'start zip linux for arm64'
@
find
.
-name
.DS_Store
-print0
| xargs
-0
rm
-f
@
mkdir
-p
${QINIU_DIST_DIR}
linux_arm64
&&
rm
-rf
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
.zip
@
cd
${CLIENT_OUT_DIR}
linux_arm64
&&
\
zip
-ry
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
.zip ./
*
&&
\
md5sum
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
.zip |
awk
'{print $$1}'
|
\
xargs
echo
>
${QINIU_DIST_DIR}
linux_arm64/
${PROJECT}
.zip.md5
&&
\
cd
../..
;
\
zip_client_mac
:
@
echo
'start zip darwin'
@
find
.
-name
.DS_Store
-print0
| xargs
-0
rm
-f
...
...
xdoc/notes.txt
浏览文件 @
da6d36a9
...
...
@@ -74,4 +74,4 @@ nohup swagger serve --no-open -p 50004 https://gitee.com/wwccss/zentaoatf/raw/ma
http://localhost:55232/api/v1/configs/setVerbose?val=true
mkdir -p bin/linux_arm64 && scp 192.168.0.56:~/dev/project/zentaoatf/bin/linux/ztf_arm64 bin/linux_arm64/ztf
\ No newline at end of file
mkdir -p bin/linux_arm64 && scp 192.168.0.56:~/dev/project/zentaoatf/bin/linux_arm64/ztf bin/linux_arm64/ztf
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录