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:
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
|
Reference in New Issue
Block a user