太初行游戏服更新脚本修改
parent
189f10a151
commit
e92ce391ae
|
@ -193,23 +193,17 @@ update_game(){
|
|||
while true; do
|
||||
echo -e "${blue}************************************${NC}"
|
||||
echo -e "${purple}开始更新游戏服...${NC}"
|
||||
echo -e "1.更新包"
|
||||
echo -e "2.正式服更新"
|
||||
echo -e "3.测试服更新"
|
||||
echo -e "4.热更包"
|
||||
echo -e "5.正式服热更"
|
||||
echo -e "6.测试服热更"
|
||||
echo -e "1.打更新包"
|
||||
echo -e "2.打热更包"
|
||||
echo -e "3.更新"
|
||||
echo -e "0.返回主菜单"
|
||||
echo -e "*.${red}其他任意键退出程序${NC}"
|
||||
echo -e "${blue}************************************${NC}"
|
||||
read -rp "请输入选项编号: " choice
|
||||
case $choice in
|
||||
1) game_update_option "create_update_package" ;; # 游戏服更新:打更新包
|
||||
2) game_update_option "official_reboot" ;; # 游戏服更新:正式服停服更新
|
||||
3) game_update_option "test_reboot" ;; # 游戏服更新:测试服停服更新
|
||||
4) game_update_option "create_hotfix_package" ;; # 游戏服更新:打热更包
|
||||
5) game_update_option "official_hotfix" ;; # 游戏服更新:正式服热更
|
||||
6) game_update_option "test_hotfix" ;; # 游戏服更新:测试服热更
|
||||
1) game_code_build "update" "update_game.sh" ;; # 游戏服更新:打更新包
|
||||
2) game_code_build "hotfix" "hotfix_game.sh" ;; # 游戏服更新:正式服停服更新
|
||||
3) game_code_official "update" ;; # 游戏服更新:测试服停服更新
|
||||
0) return ;;
|
||||
*) exit_script ;;
|
||||
esac
|
||||
|
@ -241,24 +235,6 @@ game_code_official(){
|
|||
game_send_package "$channel" "$package" "$reboot"
|
||||
}
|
||||
|
||||
# 通用游戏服更新函数
|
||||
game_update_option() {
|
||||
local action=$1
|
||||
case $action in
|
||||
"create_update_package") game_code_build "update" "update_game.sh" ;;
|
||||
"official_reboot") game_code_official "update" ;;
|
||||
"test_reboot") game_code_official "update" ;;
|
||||
"create_hotfix_package") game_code_build "hotfix" "hotfix_game.sh" ;;
|
||||
"official_hotfix") game_code_official "hotfix" ;;
|
||||
"test_hotfix") game_code_official "hotfix" ;;
|
||||
*)
|
||||
echo -e "${red}无效的选项,请重新输入${NC}"
|
||||
handle_menu
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# 更新gm
|
||||
gm_send_package() {
|
||||
local channel=${1}
|
||||
|
|
Loading…
Reference in New Issue