mirror of
https://github.com/oMaN-Rod/nxDumpFuse.git
synced 2024-11-22 10:16:40 +00:00
Add publish powershell script
This commit is contained in:
parent
d1eab39b4a
commit
e431a72e7e
1 changed files with 14 additions and 0 deletions
14
publish.ps1
Normal file
14
publish.ps1
Normal file
|
@ -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,$_)
|
||||||
|
}
|
Loading…
Reference in a new issue