Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
install
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
LaunchDeploy
install
Commits
b9c0e3a7
提交
b9c0e3a7
authored
11月 04, 2025
作者:
Andy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
12
上级
abde6852
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
10 行删除
+22
-10
1031_Game_JinSha.sh
1031_Game_JinSha.sh
+22
-10
没有找到文件。
1031_Game_JinSha.sh
浏览文件 @
b9c0e3a7
...
@@ -18,7 +18,13 @@ PlatWeb_Branches=(
...
@@ -18,7 +18,13 @@ PlatWeb_Branches=(
$GameWeb_Ranch
$GameWeb_Ranch
)
)
GameWeb_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_game_web.git"
GameSvr_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_bdgame_svr.git"
GameSvr_Base_Dir
=
"./gamesvr"
GameSvr_Branches
=(
$GameSvr_Ranch
)
GameWeb_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_bdgame_web.git"
GameWeb_Base_Dir
=
"./gameweb"
GameWeb_Base_Dir
=
"./gameweb"
GameWeb_Branches
=(
GameWeb_Branches
=(
$GameWeb_Ranch
$GameWeb_Ranch
...
@@ -67,6 +73,10 @@ fetch_git_platweb() {
...
@@ -67,6 +73,10 @@ fetch_git_platweb() {
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$PlatWeb_Repo_Url
$PlatWeb_Base_Dir
$PlatWeb_Branches
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$PlatWeb_Repo_Url
$PlatWeb_Base_Dir
$PlatWeb_Branches
}
}
fetch_git_gamesvr
()
{
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$GameSvr_Repo_Url
$GameWeb_Svr_Dir
$GameSvr_Branches
}
fetch_git_gameweb
()
{
fetch_git_gameweb
()
{
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$GameWeb_Repo_Url
$GameWeb_Base_Dir
$GameWeb_Branches
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$GameWeb_Repo_Url
$GameWeb_Base_Dir
$GameWeb_Branches
}
}
...
@@ -99,10 +109,11 @@ run_service() {
...
@@ -99,10 +109,11 @@ run_service() {
}
}
# ------------------ 数组定义菜单项 ------------------
# ------------------ 数组定义菜单项 ------------------
M
ENU_ITEMS
=(
M
emu_Items
=(
"测试 Git 账户"
"测试 Git 账户"
"获取 Plat Svr"
"获取 Plat Svr"
"获取 Plat Web"
"获取 Plat Web"
"获取 Game Svr"
"获取 Game Web"
"获取 Game Web"
"运行 Docker"
"运行 Docker"
"运行 Server"
"运行 Server"
...
@@ -111,10 +122,11 @@ MENU_ITEMS=(
...
@@ -111,10 +122,11 @@ MENU_ITEMS=(
)
)
# 每个编号对应一个函数(index 对齐 MENU_ITEMS)
# 每个编号对应一个函数(index 对齐 MENU_ITEMS)
M
ENU_ACTIONS
=(
M
ennu_Actions
=(
"check_gitaccount"
"check_gitaccount"
"fetch_git_platsvr"
"fetch_git_platsvr"
"fetch_git_platweb"
"fetch_git_platweb"
"fetch_git_gamesvr"
"fetch_git_gameweb"
"fetch_git_gameweb"
"run_docker"
"run_docker"
"run_service"
"run_service"
...
@@ -130,21 +142,21 @@ main() {
...
@@ -130,21 +142,21 @@ main() {
echo_content
"skyBlue"
"============================"
echo_content
"skyBlue"
"============================"
echo_content
"red"
" 安装游戏平台(
$GamePlatName
) "
echo_content
"red"
" 安装游戏平台(
$GamePlatName
) "
echo_content
"skyBlue"
"============================"
echo_content
"skyBlue"
"============================"
for
i
in
"
${
!M
ENU_ITEMS
[@]
}
"
;
do
for
i
in
"
${
!M
emu_Items
[@]
}
"
;
do
# printf " %2d) %s\n" "$((i + 1))" "${M
ENU_ITEMS
[$i]}"
# printf " %2d) %s\n" "$((i + 1))" "${M
emu_Items
[$i]}"
# echo_content "skyBlue" " $((i + 1))) ${M
ENU_ITEMS
[$i]}"
# echo_content "skyBlue" " $((i + 1))) ${M
emu_Items
[$i]}"
echo_content
"blue"
"
$((
i
+
1
))
) "
-n
echo_content
"blue"
"
$((
i
+
1
))
) "
-n
echo_content
"green"
"
${
M
ENU_ITEMS
[
$i
]
}
"
echo_content
"green"
"
${
M
emu_Items
[
$i
]
}
"
done
done
echo_content
"skyBlue"
"============================"
echo_content
"skyBlue"
"============================"
echo_content
"skyBlue"
"请选择操作: "
-n
echo_content
"skyBlue"
"请选择操作: "
-n
read
-r
choice
read
-r
choice
# 转为下标(减 1)
# 转为下标(减 1)
if
[[
"
$choice
"
=
~ ^[0-9]+
$
]]
&&
[
"
$choice
"
-ge
1
]
&&
[
"
$choice
"
-le
"
${#
M
ENU_ITEMS
[@]
}
"
]
;
then
if
[[
"
$choice
"
=
~ ^[0-9]+
$
]]
&&
[
"
$choice
"
-ge
1
]
&&
[
"
$choice
"
-le
"
${#
M
emu_Items
[@]
}
"
]
;
then
index
=
$((
choice
-
1
))
index
=
$((
choice
-
1
))
echo_content
"skyBlue"
">> 执行:
${
M
ENU_ITEMS
[
$index
]
}
"
echo_content
"skyBlue"
">> 执行:
${
M
emu_Items
[
$index
]
}
"
eval
"
${
M
ENU_ACTIONS
[
$index
]
}
"
eval
"
${
M
ennu_Actions
[
$index
]
}
"
else
else
echo_content
"skyBlue"
"无效选择。"
echo_content
"skyBlue"
"无效选择。"
fi
fi
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论