1
0
Fork 0
mirror of https://github.com/oMaN-Rod/nxDumpFuse.git synced 2024-11-10 04:31:45 +00:00
nxDumpFuse/publish.ps1

14 lines
392 B
PowerShell
Raw Permalink Normal View History

$project = Join-Path $PSScriptRoot '\src\nxDumpFuse\nxDumpFuse.csproj'
2021-10-28 23:49:27 +01:00
$output = Join-Path $PSScriptRoot '\src\nxDumpFuse\bin\Release\net5.0\publish\'
$runtimes = @(
2021-10-28 23:49:27 +01:00
"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,$_)
}