【工具】更新工具

main
刘涛 2025-04-30 15:23:48 +08:00
parent 740f3d58fa
commit 1295327ca9
2 changed files with 19 additions and 1 deletions

View File

@ -17,7 +17,7 @@ pipeline {
sh "$WORKSPACE/Tool/build_tools/git_revert_modules_modification.sh $WORKSPACE"
}
def remote = GetRemote();
def remote = "main";
echo "拉取分支:${remote}"
checkout scmGit(branches: [[name: "*/${remote}"]],
extensions: [checkoutOption(60), lfs(), cloneOption(noTags: false, reference: '', shallow: false, timeout: 120), submodule(recursiveSubmodules: true, reference: '', timeout: 1200)],

View File

@ -2,6 +2,8 @@
# 打开unity并等待编译完成后自动退出
# 当前目录在C:/Work/Projects/NLDClient/Tool/dll_tools
# 找到同级别C:/Work/Projects/NLDClient/ProjectNLD
# 需要删除 C:/Work/Projects/NLDClient/ProjectNLD/Assets/Code/Scripts/GamePlay
# 需要删除 C:/Work/Projects/NLDClient/ProjectNLD/Assets/Code/Scripts/GamePlay_Dll
# 打开unity
# 等待编译完成
# 退出unity
@ -36,6 +38,22 @@ fi
# 输出UNITY_PATH
echo "UNITY_PATH: $UNITY_PATH"
# 删除指定文件夹
NEED_DELETE_PATH="$PROJECT_PATH/Assets/Code/Scripts/GamePlay"
if [ -d "$NEED_DELETE_PATH" ]; then
echo "Deleting $NEED_DELETE_PATH"
rm -rf "$NEED_DELETE_PATH"
else
echo "$NEED_DELETE_PATH does not exist, skipping deletion."
fi
NEED_DELETE_PATH="$PROJECT_PATH/Assets/Code/Scripts/GamePlay_Dll"
if [ -d "$NEED_DELETE_PATH" ]; then
echo "Deleting $NEED_DELETE_PATH"
rm -rf "$NEED_DELETE_PATH"
else
echo "$NEED_DELETE_PATH does not exist, skipping deletion."
fi
# 创建临时日志文件
LOG_FILE="unity_build_$(date +%Y%m%d_%H%M%S).log"
echo "Unity build log will be saved to $LOG_FILE"