You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
627 B
27 lines
627 B
[CmdletBinding()]
|
|
param (
|
|
[Parameter(Mandatory = $true)]
|
|
[string] $runtime,
|
|
[Parameter()]
|
|
[switch] $noSingleFile
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if (-not $noSingleFile) {
|
|
$singleFileArgs = @(
|
|
"--self-contained=true"
|
|
"-p:PublishSingleFile=true"
|
|
"-p:IncludeNativeLibrariesForSelfExtract=true"
|
|
"-p:PublishReadyToRunComposite=true"
|
|
"-p:PublishReadyToRunShowWarnings=true"
|
|
"-p:EnableCompressionInSingleFile=true"
|
|
)
|
|
}
|
|
|
|
dotnet publish src\Recyclarr `
|
|
--output publish\$runtime `
|
|
--configuration Release `
|
|
--runtime $runtime `
|
|
$singleFileArgs
|