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.
recyclarr/ci/PublishAndZip.ps1

22 lines
539 B

[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]
$runtime
)
$ErrorActionPreference = "Stop"
dotnet publish src\Trash `
--output publish\$runtime `
--configuration Release `
--runtime $runtime `
--self-contained true `
-p:PublishSingleFile=true `
-p:PublishTrimmed=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-p:PublishReadyToRun=true
New-Item -ItemType Directory -Force -Path publish\zip
Compress-Archive publish\$runtime\trash* publish\zip\trash-$runtime.zip -Force