Compare commits

..

No commits in common. "0f2404bf12a83a10f7449aa7c632862bc3772879" and "d785e80622d3c189f9e0834fbf6d17696b604b45" have entirely different histories.

18 changed files with 104 additions and 106 deletions

13
build-sub.bat Normal file
View File

@ -0,0 +1,13 @@
@echo off
echo Build %1 task!
cd %1
go fmt
go vet
go build -v
echo errorlevel:%errorlevel%
if "%errorlevel%"=="0" exit
if not "%errorlevel%"=="0" echo %1 build failed!
pause
exit

View File

@ -1,17 +1,30 @@
go env -w GO111MODULE=off
@echo "go fmt common..."
cd common
go fmt
@echo off
@echo "go fmt api3th..."
cd ../api3th
go fmt
call shell/build_sub.bat dbproxy
call shell/build_sub.bat mgrsrv
call shell/build_sub.bat gatesrv
call shell/build_sub.bat worldsrv
call shell/build_sub.bat gamesrv
call shell/build_sub.bat robot
call shell/build_sub.bat ranksrv
@echo "go fmt model..."
cd ../model
go fmt
@echo "go fmt webapi..."
cd ../webapi
go fmt
@echo "go fmt lib complete!"
cd ..
start build-sub.bat dbproxy
start build-sub.bat mgrsrv
start build-sub.bat gatesrv
start build-sub.bat worldsrv
start build-sub.bat gamesrv
start build-sub.bat robot
start build-sub.bat ranksrv
@echo "Wait all build task complete!"
if %errorcode% neq 0 (
pause
)
pause

View File

@ -2,4 +2,9 @@ set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
call build.bat
go env -w GO111MODULE=off
build.bat
@echo "complete"
pause

10
build_mac.bat Normal file
View File

@ -0,0 +1,10 @@
set CGO_ENABLED=0
set GOOS=darwin
set GOARCH=amd64
go env -w GO111MODULE=off
build.bat
@echo "complete"
pause

Binary file not shown.

View File

@ -2773,7 +2773,7 @@
},
{
"Id": 77006,
"Name": "游戏点卡",
"Name": "GAME VOUCHER",
"ShowLocation": [
1,
1

Binary file not shown.

Binary file not shown.

View File

@ -1,34 +0,0 @@
rem 切换到develop分支
git checkout develop
rem 生成配置文件
call shell/gen_data.bat
rem 生产protocol
call shell/gen_go.bat
rem 提交public
call update_public.bat
rem 提交develop
git add .
git commit -m "update develop"
rem 切换release
git checkout release
rem 合并develop分支
git merge develop
rem 提交release
git add .
git commit -m "update release"
rem 编译
call build_linux.bat
rem 提交deploy仓库
call update_deploy.bat

View File

@ -1,3 +1,17 @@
@echo off
call shell/gen_data.bat
set work_path=%cd%
set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe
set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe"
cd %work_path%/tools/xlsx2proto
go build
xlsx2proto.exe
cd ../../protocol/server
%protoc% --proto_path=%GOPATH%\src --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=%GOPATH%\src pbdata.proto
cd ../../tools/xlsx2binary
go build
xlsx2binary.exe
pause

View File

@ -1,3 +1,19 @@
@echo off
call shell/gen_go.bat
set work_path=%cd%
set proto_path=%work_path%\protocol
set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe
set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe"
echo %protoc3%
cd %proto_path%
for /d %%s in (,*) do (
cd %%s
for %%b in (,*.proto) do (
echo %%b
%protoc% --proto_path=%GOPATH%\src --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=%GOPATH%\src %%b
)
cd ..
)
pause

2
public

@ -1 +1 @@
Subproject commit fcb24ec4f50716936ebb587e84867835b4dba2fc
Subproject commit 09ee0c56be846e79afc70df68005d2f6da550dfb

View File

@ -1,10 +0,0 @@
cd %1
echo ========= Build %1 =========
go fmt
go vet
go build -v
if %errorlevel% neq 0 (
echo Build failed %1.
set errorcode=1
)
cd ..

View File

@ -1,14 +0,0 @@
set work_path=%cd%
set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe
set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe"
cd %work_path%/tools/xlsx2proto
go build
xlsx2proto.exe
cd ../../protocol/server
%protoc% --proto_path=%GOPATH%\src --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=%GOPATH%\src pbdata.proto
cd ../../tools/xlsx2binary
go build
xlsx2binary.exe

View File

@ -1,15 +0,0 @@
set work_path=%cd%
set proto_path=%work_path%\protocol
set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe
set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe"
rem echo %protoc3%
cd %proto_path%
for /d %%s in (,*) do (
cd %%s
for %%b in (,*.proto) do (
rem echo %%b
%protoc% --proto_path=%GOPATH%\src --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=%GOPATH%\src %%b
)
cd ..
)

View File

@ -1,15 +0,0 @@
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
git add .
git commit -m "update"
git push
cd ..
)

View File

@ -1,3 +1,18 @@
@echo off
call shell/update_public.bat
if not exist ".\public" (
pause
)
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
git add .
git commit -m "update"
git push
pause

Binary file not shown.