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.
22 lines
539 B
22 lines
539 B
4 years ago
|
[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
|