- 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\win\native\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 $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 .\Bin\win-x64 -Recurse -ErrorAction Ignore
|