Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
install
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
LaunchDeploy
install
Commits
ba32363d
提交
ba32363d
authored
11月 03, 2025
作者:
Andy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
123
上级
e9a5b534
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
58 行增加
和
31 行删除
+58
-31
1031_Game_JinSha.sh
1031_Game_JinSha.sh
+21
-12
fun_git.sh
fun_git.sh
+37
-19
没有找到文件。
1031_Game_JinSha.sh
浏览文件 @
ba32363d
...
@@ -6,15 +6,21 @@ GamePlatName=1031_Game_JinSha
...
@@ -6,15 +6,21 @@ GamePlatName=1031_Game_JinSha
GameSvr_Ranch
=
1031_Game_JinSha
GameSvr_Ranch
=
1031_Game_JinSha
GameWeb_Ranch
=
1031_Game_JinSha
GameWeb_Ranch
=
1031_Game_JinSha
Svr_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_gameplat_svr.git"
Plat
Svr_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_gameplat_svr.git"
Svr_Base_Dir
=
"./
svr"
PlatSvr_Base_Dir
=
"./plat
svr"
Svr_Branches
=(
Plat
Svr_Branches
=(
$GameSvr_Ranch
$GameSvr_Ranch
)
)
Web_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_gameplat_web.git"
PlatWeb_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_gameplat_web.git"
Web_Base_Dir
=
"./web"
PlatWeb_Base_Dir
=
"./platweb"
Web_Branches
=(
PlatWeb_Branches
=(
$GameWeb_Ranch
)
GameWeb_Repo_Url
=
"git@git.wkwork.xyz:LaunchDeploy/wk_game_web.git"
GameWeb_Base_Dir
=
"./gameweb"
GameWeb_Branches
=(
$GameWeb_Ranch
$GameWeb_Ranch
)
)
...
@@ -54,12 +60,15 @@ check_gitaccount() {
...
@@ -54,12 +60,15 @@ check_gitaccount() {
}
}
fetch_git_platsvr
()
{
fetch_git_platsvr
()
{
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
_platsvr
$Svr_Repo_Url
$Svr_Base_Dir
$
Svr_Branches
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$PlatSvr_Repo_Url
$PlatSvr_Base_Dir
$Plat
Svr_Branches
}
}
fetch_git_platweb
()
{
fetch_git_platweb
()
{
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git_platweb
$Web_Repo_Url
$Web_Base_Dir
$Web_Branches
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$PlatWeb_Repo_Url
$PlatWeb_Base_Dir
$PlatWeb_Branches
}
fetch_git_gameweb
()
{
bash <
(
curl
-sSL
$Fun_Script_Url
/fun_git.sh
)
fetch_git
$GameWeb_Repo_Url
$GameWeb_Base_Dir
$GameWeb_Branches
}
}
linux_docker
()
{
linux_docker
()
{
...
@@ -68,22 +77,22 @@ linux_docker() {
...
@@ -68,22 +77,22 @@ linux_docker() {
run_docker
()
{
run_docker
()
{
cd
./svr/
$GameSvr_Ranch
/docker-base
||
exit
cd
./
plat
svr/
$GameSvr_Ranch
/docker-base
||
exit
make up
make up
cd
../../..
cd
../../..
cd
./svr/
$GameSvr_Ranch
/docker-game
||
exit
cd
./
plat
svr/
$GameSvr_Ranch
/docker-game
||
exit
make up
make up
cd
../../..
cd
../../..
cd
./svr/
$GameSvr_Ranch
/docker-proxy
||
exit
cd
./
plat
svr/
$GameSvr_Ranch
/docker-proxy
||
exit
make up
make up
cd
../../..
cd
../../..
}
}
run_service
()
{
run_service
()
{
cd
./svr/
$GameSvr_Ranch
/server
||
exit
cd
./
plat
svr/
$GameSvr_Ranch
/server
||
exit
make export_env
make export_env
make start
make start
cd
../../..
cd
../../..
...
...
fun_git.sh
浏览文件 @
ba32363d
...
@@ -142,7 +142,43 @@ clone_branch() {
...
@@ -142,7 +142,43 @@ clone_branch() {
done
done
}
}
fetch_git_platsvr
()
{
# fetch_git_platsvr() {
# local tmp_svr_repo_url=$1
# local tmp_svr_base_dir=$2
# local tmp_svr_branches=$3
# # 主循环
# for branch in "${tmp_svr_branches[@]}"; do
# tmp_target_dir="$tmp_svr_base_dir/$branch"
# if [ -d "$tmp_target_dir/.git" ]; then
# update_branch "$tmp_svr_repo_url" "$branch" "$tmp_target_dir"
# else
# clone_branch "$tmp_svr_repo_url" "$branch" "$tmp_target_dir"
# fi
# done
# }
# fetch_git_platweb() {
# local tmp_web_repo_url=$1
# local tmp_web_base_dir=$2
# local tmp_web_branches=$3
# # 主循环
# for branch in "${tmp_web_branches[@]}"; do
# tmp_target_dir="$tmp_web_base_dir/$branch"
# if [ -d "$tmp_target_dir/.git" ]; then
# update_branch "$tmp_web_repo_url" "$branch" "$tmp_target_dir"
# else
# clone_branch "$tmp_web_repo_url" "$branch" "$tmp_target_dir"
# fi
# done
# }
fetch_git
()
{
local
tmp_svr_repo_url
=
$1
local
tmp_svr_repo_url
=
$1
local
tmp_svr_base_dir
=
$2
local
tmp_svr_base_dir
=
$2
...
@@ -160,22 +196,4 @@ fetch_git_platsvr() {
...
@@ -160,22 +196,4 @@ fetch_git_platsvr() {
done
done
}
}
fetch_git_platweb
()
{
local
tmp_web_repo_url
=
$1
local
tmp_web_base_dir
=
$2
local
tmp_web_branches
=
$3
# 主循环
for
branch
in
"
${
tmp_web_branches
[@]
}
"
;
do
tmp_target_dir
=
"
$tmp_web_base_dir
/
$branch
"
if
[
-d
"
$tmp_target_dir
/.git"
]
;
then
update_branch
"
$tmp_web_repo_url
"
"
$branch
"
"
$tmp_target_dir
"
else
clone_branch
"
$tmp_web_repo_url
"
"
$branch
"
"
$tmp_target_dir
"
fi
done
}
"
$@
"
"
$@
"
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论