Publish-To-GameServer-win-x64.ps1 750 B

1234567891011121314
  1. dotnet publish -r win-x64 --no-self-contained --no-dependencies -c Release
  2. $path = ".\GameServer"
  3. Remove-Item $path\DebugBin\ -Recurse -ErrorAction Ignore
  4. Copy-Item .\Bin\win-x64\publish -Destination $path\DebugBin -Recurse -Force
  5. Copy-Item $path\DebugBin\Runtimes\X86_64\kcp.dll -Destination $path\DebugBin -Recurse -Force
  6. Remove-Item $path\Config -Recurse -ErrorAction Ignore
  7. Copy-Item .\Config -Destination $path\ -Recurse -Force
  8. Remove-Item $path\Config\Excel -Recurse -ErrorAction Ignore
  9. Remove-Item $path\Config\Proto -Recurse -ErrorAction Ignore
  10. Remove-Item $path\Config\ExportExcel.bat -Recurse -ErrorAction Ignore
  11. Remove-Item $path\Config\ExportProto.bat -Recurse -ErrorAction Ignore
  12. Remove-Item .\Bin\win-x64 -Recurse -ErrorAction Ignore