Ver Fonte

1.增加打包脚本;2.增加GameServer运行目录

johnclot69 há 1 ano atrás
pai
commit
16918be6e9

+ 5 - 0
GameServer/启动游戏服-Benchmark配置.bat

@@ -0,0 +1,5 @@
+@echo off
+
+cd DebugBin
+App.exe --AppType=Server --StartConfig=StartConfig/Benchmark
+@pause

+ 5 - 0
GameServer/启动游戏服-Localhost配置.bat

@@ -0,0 +1,5 @@
+@echo off
+
+cd DebugBin
+App.exe --AppType=Server --StartConfig=StartConfig/Localhost
+@pause

+ 5 - 0
GameServer/启动游戏服-Release配置.bat

@@ -0,0 +1,5 @@
+@echo off
+
+cd DebugBin
+App.exe --AppType=Server --StartConfig=StartConfig/Release --InitAccessToken=1
+@pause

+ 2 - 0
GameServer/解决urlacl报错--以管理员权限运行.bat

@@ -0,0 +1,2 @@
+netsh http add urlacl url=http://*:30300/ user=Everyone
+@pause

+ 11 - 0
Publish-win-x64-To-GameServer.ps1

@@ -0,0 +1,11 @@
+dotnet publish -r win-x64 --no-self-contained --no-dependencies -c Release
+$path = ".\GameServer"
+Remove-Item $path\DebugBin\ -Recurse -ErrorAction Ignore
+Copy-Item .\Bin\win-x64\publish -Destination $path\DebugBin -Recurse -Force
+Remove-Item $path\Config -Recurse -ErrorAction Ignore
+Copy-Item .\Config -Destination $path\  -Recurse -Force
+
+Remove-Item $path\Config\Excel -Recurse -ErrorAction Ignore
+Remove-Item $path\Config\Proto -Recurse -ErrorAction Ignore
+Remove-Item $path\Config\ExportExcel.bat -Recurse -ErrorAction Ignore
+Remove-Item $path\Config\ExportProto.bat -Recurse -ErrorAction Ignore

+ 6 - 0
Publish-win-x64.ps1

@@ -0,0 +1,6 @@
+dotnet publish -r win-x64 --no-self-contained --no-dependencies -c Release
+$path = ".\Publish\win-x64"
+Remove-Item $path\Bin\ -Recurse -ErrorAction Ignore
+Copy-Item .\Bin\win-x64\publish -Destination $path\Bin -Recurse -Force
+Remove-Item $path\Config -Recurse -ErrorAction Ignore
+Copy-Item .\Config -Destination $path\Config  -Recurse -Force