Jelajahi Sumber

优化GameServer打包脚本

johnclot69 7 bulan lalu
induk
melakukan
818e6b606d
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      Publish-To-GameServer-win-x64.ps1

+ 4 - 2
Publish-To-GameServer-win-x64.ps1

@@ -2,11 +2,13 @@ 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
+Copy-Item $path\DebugBin\Runtimes\X86_64\kcp.dll -Destination $path\DebugBin -Recurse -Force
 Remove-Item $path\Config -Recurse -ErrorAction Ignore
 Copy-Item .\Config -Destination $path\  -Recurse -Force
 
-Remove-Item .\Bin\win-x64 -Recurse -ErrorAction Ignore
 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
+Remove-Item $path\Config\ExportProto.bat -Recurse -ErrorAction Ignore
+
+Remove-Item .\Bin\win-x64 -Recurse -ErrorAction Ignore