#!/bin/bash

# 基础模块目录
gamingspace="/Users/pigflower/Code/server/gaming"
gamingprospace="/Users/pigflower/Code/server/gaming"

# 进入 gaming-agent 目录并执行 mvn clean install
cd "$gamingspace/gaming-agent"
mvn clean install

# 进入 gaming-tool 目录并执行 mvn clean install
cd "$gamingspace/gaming-tool"
mvn clean install

# 进入 gaming-db 目录并执行 mvn clean install
cd "$gamingspace/gaming-db"
mvn clean install

# 进入 gaming-fakecmd 目录并执行 mvn clean install
cd "$gamingspace/gaming-fakecmd"
mvn clean install

# 进入 gaming-design 目录并执行 mvn clean install
cd "$gamingspace/gaming-design"
mvn clean install

# 进入 gaming-ruler 目录并执行 mvn clean install
cd "$gamingspace/gaming-ruler"
mvn clean install

# 进入 gaming-prefab 目录并执行 mvn clean install
cd "$gamingprospace/gaming-prefab"
mvn clean install

# 进入 gaming-backstage 目录并执行 mvn clean install
cd "$gamingprospace/gaming-backstage"
mvn clean install

# 回到脚本所在目录并执行 mvn clean install
cd "$(dirname "$0")"
mvn clean install

# 调用 copydeploy.bat（这里注释掉的部分，在 Shell 中应该调用对应的 Shell 脚本）
#./copydeploy.sh

# 暂停，等待用户输入
read -p "Press any key to continue..."