删除public子模块

This commit is contained in:
sk 2024-09-06 15:58:06 +08:00
parent 2f74e5bfab
commit b4bab0de1e
4 changed files with 5 additions and 30 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "public"]
path = public
url = git@git.pogorockgames.com:mango-games/server/public.git

View File

@ -2,27 +2,6 @@
游戏业务代码
### 子仓库
public子仓库本项目本身并没有使用只是用来暴露部分公共代码供其他项目使用。
例如:
1.客户端同步通信协议
2.客户端同步游戏配置
#### 初始化子仓库
```
git submodule update --init --recursive
```
#### 更新子仓库
```
git submodule update --remote
```
#### 更新并提交子仓库代码
```
update_public.sh
```
### 脚本
#### gen_data.bat
xlsx文件转换为json,dat文件,生成pbdata.proto,生成srvdata包

1
public

@ -1 +0,0 @@
Subproject commit 00b9fce886af5b6a926aa804d3cad33be9ea0793

View File

@ -1,11 +1,11 @@
if exist ".\public" (
cd .\public
if exist "..\public" (
cd ..\public
git checkout main
git pull
xcopy ..\data .\data /s /e /y
xcopy ..\protocol .\protocol /s /e /y
xcopy ..\xlsx .\xlsx /s /e /y
xcopy ..\game\data .\data /s /e /y
xcopy ..\game\protocol .\protocol /s /e /y
xcopy ..\game\xlsx .\xlsx /s /e /y
git add .
git commit -m "update"