diff --git a/ci/Publish.ps1 b/ci/Publish.ps1 new file mode 100644 index 00000000..6e0df958 --- /dev/null +++ b/ci/Publish.ps1 @@ -0,0 +1,13 @@ +[CmdletBinding()] +param ( + [Parameter(Mandatory = $true)] + [string] $runtime +) + +$ErrorActionPreference = "Stop" + +dotnet publish src\Trash ` + --output publish\$runtime ` + --configuration Release ` + --runtime $runtime ` + --self-contained true diff --git a/ci/PublishAndZip.ps1 b/ci/PublishAndZip.ps1 index 61b84ec8..bb6ecb5e 100644 --- a/ci/PublishAndZip.ps1 +++ b/ci/PublishAndZip.ps1 @@ -6,16 +6,7 @@ param ( $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 ` - -p:PublishReadyToRunShowWarnings=true +& "$PSScriptRoot\Publish.ps1" $runtime if (Get-Command chmod -errorAction SilentlyContinue) { "The chmod command was found. Setting read + execute permission." diff --git a/src/Trash/Trash.csproj b/src/Trash/Trash.csproj index 11396f6b..6f76c01e 100644 --- a/src/Trash/Trash.csproj +++ b/src/Trash/Trash.csproj @@ -3,6 +3,14 @@ Exe Trash trash + + + true + true + true + true + true + true