Publish-win-x64.ps1 397 B

12345678
  1. dotnet publish -r win-x64 --no-self-contained --no-dependencies -c Release
  2. $path = ".\Publish\win-x64"
  3. Remove-Item $path\Bin\ -Recurse -ErrorAction Ignore
  4. Copy-Item .\Bin\win-x64\publish -Destination $path\Bin -Recurse -Force
  5. Remove-Item $path\Config -Recurse -ErrorAction Ignore
  6. Copy-Item .\Config -Destination $path\Config -Recurse -Force
  7. Remove-Item .\Bin\win-x64 -Recurse -ErrorAction Ignore