mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
适配 luban-next 最新版本的配表结构,新增 Mac 设备相关的 shell 脚本支持
This commit is contained in:
18
BuildCLI/build_android.sh
Normal file
18
BuildCLI/build_android.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
source ./path_define.sh
|
||||
|
||||
"${UNITYEDITOR_PATH}/Unity" "${WORKSPACE}" \
|
||||
-logFile "${BUILD_LOGFILE}" \
|
||||
-executeMethod TEngine.ReleaseTools.AutomationBuildAndroid \
|
||||
-quit -batchmode \
|
||||
-CustomArgs:Language=en_US "${WORKSPACE}"
|
||||
|
||||
while IFS= read -r line; do
|
||||
echo "$line"
|
||||
done < "${BUILD_LOGFILE}"
|
||||
|
||||
echo "按任意键继续..."
|
||||
read -k1
|
14
BuildCLI/path_define.sh
Normal file
14
BuildCLI/path_define.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
export WORKSPACE="/Users/your_user/github/TEngine/UnityProject" # 请替换为 macOS 上的实际路径
|
||||
export UNITYEDITOR_PATH="/Applications/Unity/Hub/Editor/2021.3.20f1c1/Unity.app/Contents/MacOS" # 请替换为 macOS 上的 Unity 路径
|
||||
export BUILD_DLL_LOGFILE="./build_dll.log"
|
||||
export BUILD_LOGFILE="./build.log"
|
||||
|
||||
echo "环境变量已设置:"
|
||||
echo "WORKSPACE=${WORKSPACE}"
|
||||
echo "UNITYEDITOR_PATH=${UNITYEDITOR_PATH}"
|
||||
echo "BUILD_DLL_LOGFILE=${BUILD_DLL_LOGFILE}"
|
||||
echo "BUILD_LOGFILE=${BUILD_LOGFILE}"
|
Binary file not shown.
24
Configs/GameConfig/gen_code_bin_to_project.sh
Normal file
24
Configs/GameConfig/gen_code_bin_to_project.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
echo "当前目录: $(pwd)"
|
||||
|
||||
export WORKSPACE="$(realpath ../../)"
|
||||
export LUBAN_DLL="${WORKSPACE}/Tools/Luban/Luban.dll"
|
||||
export CONF_ROOT="$(pwd)"
|
||||
export DATA_OUTPATH="${WORKSPACE}/UnityProject/Assets/AssetRaw/Configs/bytes/"
|
||||
export CODE_OUTPATH="${WORKSPACE}/UnityProject/Assets/GameScripts/HotFix/GameProto/GameConfig/"
|
||||
|
||||
cp -R "${CONF_ROOT}/CustomTemplate/ConfigSystem.cs" \
|
||||
"${WORKSPACE}/UnityProject/Assets/GameScripts/HotFix/GameProto/ConfigSystem.cs"
|
||||
|
||||
dotnet "${LUBAN_DLL}" \
|
||||
-t client \
|
||||
-c cs-bin \
|
||||
-d bin \
|
||||
--conf "${CONF_ROOT}/luban.conf" \
|
||||
-x outputCodeDir="${CODE_OUTPATH}" \
|
||||
-x outputDataDir="${DATA_OUTPATH}"
|
||||
|
||||
echo "操作完成,按任意键退出..."
|
||||
read -k1
|
25
Configs/GameConfig/gen_code_bin_to_project_lazyload.sh
Normal file
25
Configs/GameConfig/gen_code_bin_to_project_lazyload.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
echo "当前目录: $(pwd)"
|
||||
|
||||
export WORKSPACE="$(realpath ../../)"
|
||||
export LUBAN_DLL="${WORKSPACE}/Tools/Luban/Luban.dll"
|
||||
export CONF_ROOT="$(pwd)"
|
||||
export DATA_OUTPATH="${WORKSPACE}/UnityProject/Assets/AssetRaw/Configs/bytes/"
|
||||
export CODE_OUTPATH="${WORKSPACE}/UnityProject/Assets/GameScripts/HotFix/GameProto/GameConfig/"
|
||||
|
||||
cp -R "${CONF_ROOT}/CustomTemplate/ConfigSystem.cs" \
|
||||
"${WORKSPACE}/UnityProject/Assets/GameScripts/HotFix/GameProto/ConfigSystem.cs"
|
||||
|
||||
dotnet "${LUBAN_DLL}" \
|
||||
-t client \
|
||||
-c cs-bin \
|
||||
-d bin \
|
||||
--conf "${CONF_ROOT}/luban.conf" \
|
||||
--customTemplateDir "${CONF_ROOT}/CustomTemplate/CustomTemplate_Client_LazyLoad" \
|
||||
-x outputCodeDir="${CODE_OUTPATH}" \
|
||||
-x outputDataDir="${DATA_OUTPATH}"
|
||||
|
||||
echo "操作完成,按任意键退出..."
|
||||
read -k1
|
21
Configs/GameConfig/gen_code_bin_to_server.sh
Normal file
21
Configs/GameConfig/gen_code_bin_to_server.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
echo "当前目录: $(pwd)"
|
||||
|
||||
export WORKSPACE="$(realpath ../../)"
|
||||
export LUBAN_DLL="${WORKSPACE}/Tools/Luban/Luban.dll"
|
||||
export CONF_ROOT="$(pwd)"
|
||||
export DATA_OUTPATH="${WORKSPACE}/Server/GameConfig"
|
||||
export CODE_OUTPATH="${WORKSPACE}/Server/Hotfix/Config/GameConfig"
|
||||
|
||||
dotnet "${LUBAN_DLL}" \
|
||||
-t server \
|
||||
-c cs-bin \
|
||||
-d bin \
|
||||
--conf "${CONF_ROOT}/luban.conf" \
|
||||
-x outputCodeDir="${CODE_OUTPATH}" \
|
||||
-x outputDataDir="${DATA_OUTPATH}"
|
||||
|
||||
echo "操作完成,按任意键退出..."
|
||||
read -k1
|
3
Tools/FileServer/instal.sh
Executable file
3
Tools/FileServer/instal.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm install yumu-static-server -g
|
3
Tools/FileServer/start.sh
Executable file
3
Tools/FileServer/start.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
server -p 8081 -cors
|
Reference in New Issue
Block a user