This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 03:26:09 +08:00
parent ec4d6a15d7
commit 0014eff5e0
4034 changed files with 623229 additions and 41 deletions

View File

@@ -0,0 +1,7 @@
# 设置客户端 git hook
- 参考pre-commit文件将文件中的'./auto_validation.sh' 修改为合适的脚本
- 参考 auto_validation.sh 准备合适的验证脚本
- 将pre-commit复制到仓库根目录的 .git/hooks目录。 命令类似于'cp -rf pre-commit ${仓库根目录}/.git/hooks'
- 完成设置

View File

@@ -0,0 +1,13 @@
#!/bin/bash
WORKSPACE=..
LUBAN_DLL=$WORKSPACE/Tools/Luban/Luban.dll
CONF_ROOT=.
dotnet $LUBAN_DLL \
-t all \
-f \
--conf $CONF_ROOT/luban.conf \
-x pathValidator.rootDir=$WORKSPACE/Projects/Csharp_Unity_bin \
-x l10n.textProviderFile=$CONF_ROOT/Datas/l10n/texts.json

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# 注意 git hook 默认运行位置在 Config 文件夹下
./auto_validation.sh
if [ $? -ne 0 ]; then
echo "当前配置有错误, 请修复错误再进行推送!"
exit 1
fi
# accept
exit 0