From e431a72e7e88975d742bbd0ba8329296060b3ece Mon Sep 17 00:00:00 2001 From: Omar Date: Thu, 28 Oct 2021 18:49:27 -0400 Subject: [PATCH] Add publish powershell script --- publish.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 publish.ps1 diff --git a/publish.ps1 b/publish.ps1 new file mode 100644 index 0000000..241edc2 --- /dev/null +++ b/publish.ps1 @@ -0,0 +1,14 @@ + $project = Join-Path $PSScriptRoot '\src\nxDumpFuse\nxDumpFuse.csproj' +$output = Join-Path $PSScriptRoot '\src\nxDumpFuse\bin\Release\net5.0\publish\' + $runtimes = @( + "win-x64" + "osx-x64" + "linux-x64" + ) + + # clear previous releases +Remove-Item "$output\*" -Force -Recurse -Confirm:$true + + $runtimes | %{ + & dotnet publish $project -c release -r $_ -o ("{0}\{1}" -f $output,$_) + } \ No newline at end of file