From c593675f3d90ed1b31ebd728e601e52974632aa7 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 29 May 2022 12:29:08 -0500 Subject: [PATCH] ci: Move publish properties to ps1 Moving these out allows custom `dotnet publish` commands to be run, such as creating a portable build without having to specify --runtime. --- ci/Publish.ps1 | 7 ++++++- src/Recyclarr/Recyclarr.csproj | 7 ------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ci/Publish.ps1 b/ci/Publish.ps1 index a4f7d4f5..53b7b850 100644 --- a/ci/Publish.ps1 +++ b/ci/Publish.ps1 @@ -10,4 +10,9 @@ dotnet publish src\Recyclarr ` --output publish\$runtime ` --configuration Release ` --runtime $runtime ` - --self-contained true + --self-contained true ` + -p:PublishSingleFile=true ` + -p:IncludeNativeLibrariesForSelfExtract=true ` + -p:PublishReadyToRunComposite=true ` + -p:PublishReadyToRunShowWarnings=true ` + -p:EnableCompressionInSingleFile=true diff --git a/src/Recyclarr/Recyclarr.csproj b/src/Recyclarr/Recyclarr.csproj index 319bde42..b09aa0ed 100644 --- a/src/Recyclarr/Recyclarr.csproj +++ b/src/Recyclarr/Recyclarr.csproj @@ -2,13 +2,6 @@ Exe recyclarr - - - true - true - true - true - true