Split the fxdependent package on Windows into two packages (#10134)
This commit is contained in:
parent
ea4895c849
commit
540737ebe1
88
build.psm1
88
build.psm1
|
@ -220,6 +220,7 @@ function Start-PSBuild {
|
||||||
# If this parameter is not provided it will get determined automatically.
|
# If this parameter is not provided it will get determined automatically.
|
||||||
[ValidateSet("alpine-x64",
|
[ValidateSet("alpine-x64",
|
||||||
"fxdependent",
|
"fxdependent",
|
||||||
|
"fxdependent-win-desktop",
|
||||||
"linux-arm",
|
"linux-arm",
|
||||||
"linux-arm64",
|
"linux-arm64",
|
||||||
"linux-x64",
|
"linux-x64",
|
||||||
|
@ -328,7 +329,7 @@ Fix steps:
|
||||||
$Arguments += "--output", (Split-Path $Options.Output)
|
$Arguments += "--output", (Split-Path $Options.Output)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Options.Runtime -like 'win*' -or ($Options.Runtime -eq 'fxdependent' -and $Environment.IsWindows)) {
|
if ($Options.Runtime -like 'win*' -or ($Options.Runtime -like 'fxdependent*' -and $Environment.IsWindows)) {
|
||||||
$Arguments += "/property:IsWindows=true"
|
$Arguments += "/property:IsWindows=true"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -380,30 +381,50 @@ Fix steps:
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
# Relative paths do not work well if cwd is not changed to project
|
|
||||||
Push-Location $Options.Top
|
|
||||||
Write-Log "Run dotnet $Arguments from $pwd"
|
|
||||||
Start-NativeExecution { dotnet $Arguments }
|
|
||||||
|
|
||||||
if ($CrossGen -and $Options.Runtime -ne 'fxdependent') {
|
if ($Options.Runtime -notlike 'fxdependent*') {
|
||||||
## fxdependent package cannot be CrossGen'ed
|
# Relative paths do not work well if cwd is not changed to project
|
||||||
Start-CrossGen -PublishPath $publishPath -Runtime $script:Options.Runtime
|
Push-Location $Options.Top
|
||||||
Write-Log "pwsh.exe with ngen binaries is available at: $($Options.Output)"
|
|
||||||
} else {
|
if ($Options.Runtime -like 'win-arm*') {
|
||||||
|
$Arguments += "/property:SDKToUse=Microsoft.NET.Sdk"
|
||||||
|
} else {
|
||||||
|
$Arguments += "/property:SDKToUse=Microsoft.NET.Sdk.WindowsDesktop"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Log "Run dotnet $Arguments from $pwd"
|
||||||
|
Start-NativeExecution { dotnet $Arguments }
|
||||||
Write-Log "PowerShell output: $($Options.Output)"
|
Write-Log "PowerShell output: $($Options.Output)"
|
||||||
|
|
||||||
if ($Options.Runtime -eq 'fxdependent') {
|
if ($CrossGen) {
|
||||||
$globalToolSrcFolder = Resolve-Path (Join-Path $Options.Top "../Microsoft.PowerShell.GlobalTool.Shim") | Select-Object -ExpandProperty Path
|
## fxdependent package cannot be CrossGen'ed
|
||||||
|
Start-CrossGen -PublishPath $publishPath -Runtime $script:Options.Runtime
|
||||||
|
Write-Log "pwsh.exe with ngen binaries is available at: $($Options.Output)"
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
} else {
|
||||||
Push-Location $globalToolSrcFolder
|
$globalToolSrcFolder = Resolve-Path (Join-Path $Options.Top "../Microsoft.PowerShell.GlobalTool.Shim") | Select-Object -ExpandProperty Path
|
||||||
$Arguments += "--output", $publishPath
|
|
||||||
Write-Log "Run dotnet $Arguments from $pwd to build global tool entry point"
|
if ($Options.Runtime -eq 'fxdependent') {
|
||||||
Start-NativeExecution { dotnet $Arguments }
|
$Arguments += "/property:SDKToUse=Microsoft.NET.Sdk"
|
||||||
}
|
} elseif ($Options.Runtime -eq 'fxdependent-win-desktop') {
|
||||||
finally {
|
$Arguments += "/property:SDKToUse=Microsoft.NET.Sdk.WindowsDesktop"
|
||||||
Pop-Location
|
}
|
||||||
}
|
|
||||||
|
# Relative paths do not work well if cwd is not changed to project
|
||||||
|
Push-Location $Options.Top
|
||||||
|
Write-Log "Run dotnet $Arguments from $pwd"
|
||||||
|
Start-NativeExecution { dotnet $Arguments }
|
||||||
|
Write-Log "PowerShell output: $($Options.Output)"
|
||||||
|
|
||||||
|
try {
|
||||||
|
Push-Location $globalToolSrcFolder
|
||||||
|
$Arguments += "--output", $publishPath
|
||||||
|
Write-Log "Run dotnet $Arguments from $pwd to build global tool entry point"
|
||||||
|
Start-NativeExecution { dotnet $Arguments }
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
Pop-Location
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -479,17 +500,27 @@ function Restore-PSPackage
|
||||||
{
|
{
|
||||||
$ProjectDirs = @($Options.Top, "$PSScriptRoot/src/TypeCatalogGen", "$PSScriptRoot/src/ResGen", "$PSScriptRoot/src/Modules")
|
$ProjectDirs = @($Options.Top, "$PSScriptRoot/src/TypeCatalogGen", "$PSScriptRoot/src/ResGen", "$PSScriptRoot/src/Modules")
|
||||||
|
|
||||||
if ($Options.Runtime -eq 'fxdependent') {
|
if ($Options.Runtime -like 'fxdependent*') {
|
||||||
$ProjectDirs += "$PSScriptRoot/src/Microsoft.PowerShell.GlobalTool.Shim"
|
$ProjectDirs += "$PSScriptRoot/src/Microsoft.PowerShell.GlobalTool.Shim"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Force -or (-not (Test-Path "$($Options.Top)/obj/project.assets.json"))) {
|
if ($Force -or (-not (Test-Path "$($Options.Top)/obj/project.assets.json"))) {
|
||||||
|
|
||||||
if($Options.Runtime -ne 'fxdependent') {
|
$sdkToUse = if (($Options.Runtime -eq 'fxdependent-win-desktop' -or $Options.Runtime -like 'win*')) { # this is fxd or some windows runtime
|
||||||
$RestoreArguments = @("--runtime",$Options.Runtime, "--verbosity")
|
if ($Options.Runtime -like 'win-arm*') {
|
||||||
|
'Microsoft.NET.Sdk'
|
||||||
|
} else {
|
||||||
|
'Microsoft.NET.Sdk.WindowsDesktop'
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$RestoreArguments = @("--verbosity")
|
'Microsoft.NET.Sdk'
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($Options.Runtime -notlike 'fxdependent*') {
|
||||||
|
$RestoreArguments = @("--runtime", $Options.Runtime, "/property:SDKToUse=$sdkToUse", "--verbosity")
|
||||||
|
} else {
|
||||||
|
$RestoreArguments = @("/property:SDKToUse=$sdkToUse", "--verbosity")
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||||
|
@ -580,6 +611,7 @@ function New-PSOptions {
|
||||||
[ValidateSet("",
|
[ValidateSet("",
|
||||||
"alpine-x64",
|
"alpine-x64",
|
||||||
"fxdependent",
|
"fxdependent",
|
||||||
|
"fxdependent-win-desktop",
|
||||||
"linux-arm",
|
"linux-arm",
|
||||||
"linux-arm64",
|
"linux-arm64",
|
||||||
"linux-x64",
|
"linux-x64",
|
||||||
|
@ -638,7 +670,7 @@ function New-PSOptions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$PowerShellDir = if ($Runtime -like 'win*' -or ($Runtime -eq 'fxdependent' -and $Environment.IsWindows)) {
|
$PowerShellDir = if ($Runtime -like 'win*' -or ($Runtime -like 'fxdependent*' -and $Environment.IsWindows)) {
|
||||||
"powershell-win-core"
|
"powershell-win-core"
|
||||||
} else {
|
} else {
|
||||||
"powershell-unix"
|
"powershell-unix"
|
||||||
|
@ -652,7 +684,7 @@ function New-PSOptions {
|
||||||
Write-Verbose "Using framework '$Framework'"
|
Write-Verbose "Using framework '$Framework'"
|
||||||
}
|
}
|
||||||
|
|
||||||
$Executable = if ($Runtime -eq 'fxdependent') {
|
$Executable = if ($Runtime -like 'fxdependent*') {
|
||||||
"pwsh.dll"
|
"pwsh.dll"
|
||||||
} elseif ($Environment.IsLinux -or $Environment.IsMacOS) {
|
} elseif ($Environment.IsLinux -or $Environment.IsMacOS) {
|
||||||
"pwsh"
|
"pwsh"
|
||||||
|
@ -662,7 +694,7 @@ function New-PSOptions {
|
||||||
|
|
||||||
# Build the Output path
|
# Build the Output path
|
||||||
if (!$Output) {
|
if (!$Output) {
|
||||||
if ($Runtime -eq 'fxdependent') {
|
if ($Runtime -like 'fxdependent*') {
|
||||||
$Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, "publish", $Executable)
|
$Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, "publish", $Executable)
|
||||||
} else {
|
} else {
|
||||||
$Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, $Runtime, "publish", $Executable)
|
$Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, $Runtime, "publish", $Executable)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project ToolsVersion="15.0">
|
||||||
|
|
||||||
<Import Project="..\..\PowerShell.Common.props" />
|
<Import Project="..\..\PowerShell.Common.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -8,4 +8,10 @@
|
||||||
<RootNamespace>Microsoft.PowerShell.GlobalTool.Shim</RootNamespace>
|
<RootNamespace>Microsoft.PowerShell.GlobalTool.Shim</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk' " />
|
||||||
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk' " />
|
||||||
|
|
||||||
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk.WindowsDesktop' " />
|
||||||
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk.WindowsDesktop' " />
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
<ApplicationManifest>..\..\assets\pwsh.manifest</ApplicationManifest>
|
<ApplicationManifest>..\..\assets\pwsh.manifest</ApplicationManifest>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(RuntimeIdentifier)' == 'win-arm' or '$(RuntimeIdentifier)' == 'win-arm64'" />
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk' " />
|
||||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(RuntimeIdentifier)' == 'win-arm' or '$(RuntimeIdentifier)' == 'win-arm64'" />
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk' " />
|
||||||
|
|
||||||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(RuntimeIdentifier)' != 'win-arm' and '$(RuntimeIdentifier)' != 'win-arm64'" />
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk.WindowsDesktop' " />
|
||||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(RuntimeIdentifier)' != 'win-arm' and '$(RuntimeIdentifier)' != 'win-arm64'" />
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(SDKToUse)' == 'Microsoft.NET.Sdk.WindowsDesktop' " />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\powershell\Program.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
|
<Compile Include="..\powershell\Program.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
|
||||||
|
|
|
@ -25,7 +25,7 @@ function Start-PSPackage {
|
||||||
[string]$Name = "powershell",
|
[string]$Name = "powershell",
|
||||||
|
|
||||||
# Ubuntu, CentOS, Fedora, macOS, and Windows packages are supported
|
# Ubuntu, CentOS, Fedora, macOS, and Windows packages are supported
|
||||||
[ValidateSet("msix", "deb", "osxpkg", "rpm", "msi", "zip", "nupkg", "tar", "tar-arm", "tar-arm64", "tar-alpine", "fxdependent")]
|
[ValidateSet("msix", "deb", "osxpkg", "rpm", "msi", "zip", "nupkg", "tar", "tar-arm", "tar-arm64", "tar-alpine", "fxdependent", "fxdependent-win-desktop")]
|
||||||
[string[]]$Type,
|
[string[]]$Type,
|
||||||
|
|
||||||
# Generate windows downlevel package
|
# Generate windows downlevel package
|
||||||
|
@ -41,7 +41,7 @@ function Start-PSPackage {
|
||||||
)
|
)
|
||||||
|
|
||||||
DynamicParam {
|
DynamicParam {
|
||||||
if ("zip" -eq $Type -or "fxdependent" -eq $Type) {
|
if ("zip" -eq $Type -or "fxdependent" -eq $Type -or "fxdependent-win-desktop" -eq $Type) {
|
||||||
# Add a dynamic parameter '-IncludeSymbols' when the specified package type is 'zip' only.
|
# Add a dynamic parameter '-IncludeSymbols' when the specified package type is 'zip' only.
|
||||||
# The '-IncludeSymbols' parameter can be used to indicate that the package should only contain powershell binaries and symbols.
|
# The '-IncludeSymbols' parameter can be used to indicate that the package should only contain powershell binaries and symbols.
|
||||||
$ParameterAttr = New-Object "System.Management.Automation.ParameterAttribute"
|
$ParameterAttr = New-Object "System.Management.Automation.ParameterAttribute"
|
||||||
|
@ -88,6 +88,9 @@ function Start-PSPackage {
|
||||||
if ($Type -eq 'fxdependent') {
|
if ($Type -eq 'fxdependent') {
|
||||||
$NameSuffix = "win-fxdependent"
|
$NameSuffix = "win-fxdependent"
|
||||||
Write-Log "Packaging : '$Type'; Packaging Configuration: '$Configuration'"
|
Write-Log "Packaging : '$Type'; Packaging Configuration: '$Configuration'"
|
||||||
|
} elseif ($Type -eq 'fxdependent-win-desktop') {
|
||||||
|
$NameSuffix = "win-fxdependentWinDesktop"
|
||||||
|
Write-Log "Packaging : '$Type'; Packaging Configuration: '$Configuration'"
|
||||||
} else {
|
} else {
|
||||||
Write-Log "Packaging RID: '$Runtime'; Packaging Configuration: '$Configuration'"
|
Write-Log "Packaging RID: '$Runtime'; Packaging Configuration: '$Configuration'"
|
||||||
}
|
}
|
||||||
|
@ -120,7 +123,7 @@ function Start-PSPackage {
|
||||||
$actualParams += '-PSModuleRestore'
|
$actualParams += '-PSModuleRestore'
|
||||||
}
|
}
|
||||||
|
|
||||||
$precheckFailed = if ($Type -eq 'fxdependent' -or $Type -eq 'tar-alpine') {
|
$precheckFailed = if ($Type -like 'fxdependent*' -or $Type -eq 'tar-alpine') {
|
||||||
## We do not check for runtime and crossgen for framework dependent package.
|
## We do not check for runtime and crossgen for framework dependent package.
|
||||||
-not $Script:Options -or ## Start-PSBuild hasn't been executed yet
|
-not $Script:Options -or ## Start-PSBuild hasn't been executed yet
|
||||||
-not $PSModuleRestoreCorrect -or ## Last build didn't specify '-PSModuleRestore' correctly
|
-not $PSModuleRestoreCorrect -or ## Last build didn't specify '-PSModuleRestore' correctly
|
||||||
|
@ -152,7 +155,7 @@ function Start-PSPackage {
|
||||||
$params = @('-Clean')
|
$params = @('-Clean')
|
||||||
|
|
||||||
# CrossGen cannot be done for framework dependent package as it is runtime agnostic.
|
# CrossGen cannot be done for framework dependent package as it is runtime agnostic.
|
||||||
if ($Type -ne 'fxdependent') {
|
if ($Type -notlike 'fxdependent*') {
|
||||||
$params += '-CrossGen'
|
$params += '-CrossGen'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,6 +167,8 @@ function Start-PSPackage {
|
||||||
|
|
||||||
if ($Type -eq 'fxdependent') {
|
if ($Type -eq 'fxdependent') {
|
||||||
$params += '-Runtime', 'fxdependent'
|
$params += '-Runtime', 'fxdependent'
|
||||||
|
} elseif ($Type -eq 'fxdependent-win-desktop') {
|
||||||
|
$params += '-Runtime', 'fxdependent-win-desktop'
|
||||||
} else {
|
} else {
|
||||||
$params += '-Runtime', $Runtime
|
$params += '-Runtime', $Runtime
|
||||||
}
|
}
|
||||||
|
@ -282,7 +287,8 @@ function Start-PSPackage {
|
||||||
New-ZipPackage @Arguments
|
New-ZipPackage @Arguments
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"fxdependent" {
|
|
||||||
|
{ $_ -like "fxdependent*" } {
|
||||||
## Remove PDBs from package to reduce size.
|
## Remove PDBs from package to reduce size.
|
||||||
if(-not $IncludeSymbols.IsPresent) {
|
if(-not $IncludeSymbols.IsPresent) {
|
||||||
Get-ChildItem $Source -Filter *.pdb | Remove-Item -Force
|
Get-ChildItem $Source -Filter *.pdb | Remove-Item -Force
|
||||||
|
@ -3230,6 +3236,7 @@ function New-GlobalToolNupkg
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)] [string] $LinuxBinPath,
|
[Parameter(Mandatory)] [string] $LinuxBinPath,
|
||||||
[Parameter(Mandatory)] [string] $WindowsBinPath,
|
[Parameter(Mandatory)] [string] $WindowsBinPath,
|
||||||
|
[Parameter(Mandatory)] [string] $WindowsDesktopBinPath,
|
||||||
[Parameter(Mandatory)] [string] $PackageVersion,
|
[Parameter(Mandatory)] [string] $PackageVersion,
|
||||||
[Parameter(Mandatory)] [string] $DestinationPath,
|
[Parameter(Mandatory)] [string] $DestinationPath,
|
||||||
[Parameter(ParameterSetName="UnifiedPackage")] [switch] $UnifiedPackage
|
[Parameter(ParameterSetName="UnifiedPackage")] [switch] $UnifiedPackage
|
||||||
|
@ -3241,13 +3248,13 @@ function New-GlobalToolNupkg
|
||||||
Remove-Item -Path (Join-Path $LinuxBinPath 'libssl.so.1.0.0') -Verbose -Force -Recurse
|
Remove-Item -Path (Join-Path $LinuxBinPath 'libssl.so.1.0.0') -Verbose -Force -Recurse
|
||||||
|
|
||||||
## Remove unnecessary xml files
|
## Remove unnecessary xml files
|
||||||
Get-ChildItem -Path $LinuxBinPath, $WindowsBinPath -Filter *.xml | Remove-Item -Verbose
|
Get-ChildItem -Path $LinuxBinPath, $WindowsBinPath, $WindowsDesktopBinPath -Filter *.xml | Remove-Item -Verbose
|
||||||
|
|
||||||
if ($UnifiedPackage)
|
if ($UnifiedPackage)
|
||||||
{
|
{
|
||||||
Write-Log "Creating a unified package"
|
Write-Log "Creating a unified package"
|
||||||
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell"; Type = "Unified"}
|
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell"; Type = "Unified"}
|
||||||
$ShimDllPath = Join-Path $WindowsBinPath "Microsoft.PowerShell.GlobalTool.Shim.dll"
|
$ShimDllPath = Join-Path $WindowsDesktopBinPath "Microsoft.PowerShell.GlobalTool.Shim.dll"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3257,6 +3264,9 @@ function New-GlobalToolNupkg
|
||||||
Write-Log "Reducing size of Windows package"
|
Write-Log "Reducing size of Windows package"
|
||||||
ReduceFxDependentPackage -Path $WindowsBinPath -KeepWindowsRuntimes
|
ReduceFxDependentPackage -Path $WindowsBinPath -KeepWindowsRuntimes
|
||||||
|
|
||||||
|
Write-Log "Reducing size of WindowsDesktop package"
|
||||||
|
ReduceFxDependentPackage -Path $WindowsDesktopBinPath -KeepWindowsRuntimes
|
||||||
|
|
||||||
Write-Log "Creating a Linux and Windows packages"
|
Write-Log "Creating a Linux and Windows packages"
|
||||||
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell.Linux.Alpine"; Type = "PowerShell.Linux.Alpine"}
|
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell.Linux.Alpine"; Type = "PowerShell.Linux.Alpine"}
|
||||||
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell.Linux.x64"; Type = "PowerShell.Linux.x64"}
|
$packageInfo += @{ RootFolder = (New-TempFolder); PackageName = "PowerShell.Linux.x64"; Type = "PowerShell.Linux.x64"}
|
||||||
|
@ -3279,8 +3289,8 @@ function New-GlobalToolNupkg
|
||||||
$winFolder = New-Item (Join-Path $ridFolder "win") -ItemType Directory
|
$winFolder = New-Item (Join-Path $ridFolder "win") -ItemType Directory
|
||||||
$unixFolder = New-Item (Join-Path $ridFolder "unix") -ItemType Directory
|
$unixFolder = New-Item (Join-Path $ridFolder "unix") -ItemType Directory
|
||||||
|
|
||||||
Write-Log "Copying runtime assemblies from $WindowsBinPath"
|
Write-Log "Copying runtime assemblies from $WindowsDesktopBinPath"
|
||||||
Copy-Item "$WindowsBinPath\*" -Destination $winFolder -Recurse
|
Copy-Item "$WindowsDesktopBinPath\*" -Destination $winFolder -Recurse
|
||||||
|
|
||||||
Write-Log "Copying runtime assemblies from $LinuxBinPath"
|
Write-Log "Copying runtime assemblies from $LinuxBinPath"
|
||||||
Copy-Item "$LinuxBinPath\*" -Destination $unixFolder -Recurse
|
Copy-Item "$LinuxBinPath\*" -Destination $unixFolder -Recurse
|
||||||
|
@ -3341,8 +3351,8 @@ function New-GlobalToolNupkg
|
||||||
|
|
||||||
"PowerShell.Windows.x64"
|
"PowerShell.Windows.x64"
|
||||||
{
|
{
|
||||||
Write-Log "Copying runtime assemblies from $WindowsBinPath for $packageType"
|
Write-Log "Copying runtime assemblies from $WindowsDesktopBinPath for $packageType"
|
||||||
Copy-Item "$WindowsBinPath/*" -Destination $ridFolder -Recurse
|
Copy-Item "$WindowsDesktopBinPath/*" -Destination $ridFolder -Recurse
|
||||||
Remove-Item -Path $ridFolder/runtimes/win-arm -Recurse -Force
|
Remove-Item -Path $ridFolder/runtimes/win-arm -Recurse -Force
|
||||||
$toolSettings = $packagingStrings.GlobalToolSettingsFile -f "pwsh.dll"
|
$toolSettings = $packagingStrings.GlobalToolSettingsFile -f "pwsh.dll"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ param (
|
||||||
|
|
||||||
[string] $destination = "$env:WORKSPACE",
|
[string] $destination = "$env:WORKSPACE",
|
||||||
|
|
||||||
[ValidateSet("win7-x64", "win7-x86", "win-arm", "win-arm64", "fxdependent")]
|
[ValidateSet("win7-x64", "win7-x86", "win-arm", "win-arm64", "fxdependent", "fxdependent-win-desktop")]
|
||||||
[string]$Runtime = 'win7-x64',
|
[string]$Runtime = 'win7-x64',
|
||||||
|
|
||||||
[switch] $Wait,
|
[switch] $Wait,
|
||||||
|
@ -79,7 +79,7 @@ try{
|
||||||
if ($PSCmdlet.ParameterSetName -eq 'packageSigned')
|
if ($PSCmdlet.ParameterSetName -eq 'packageSigned')
|
||||||
{
|
{
|
||||||
Write-Verbose "Expanding signed build..." -verbose
|
Write-Verbose "Expanding signed build..." -verbose
|
||||||
if($Runtime -eq 'fxdependent')
|
if($Runtime -like 'fxdependent*')
|
||||||
{
|
{
|
||||||
Expand-PSSignedBuild -BuildZip $BuildZip -SkipPwshExeCheck
|
Expand-PSSignedBuild -BuildZip $BuildZip -SkipPwshExeCheck
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ try{
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Write-Verbose "Starting powershell build for RID: $Runtime and ReleaseTag: $ReleaseTag ..." -verbose
|
Write-Verbose "Starting powershell build for RID: $Runtime and ReleaseTag: $ReleaseTag ..." -verbose
|
||||||
$buildParams = @{'CrossGen'= $Runtime -notmatch "arm" -and $Runtime -ne "fxdependent"}
|
$buildParams = @{'CrossGen'= $Runtime -notmatch "arm" -and $Runtime -notlike "fxdependent*"}
|
||||||
|
|
||||||
if($Symbols.IsPresent)
|
if($Symbols.IsPresent)
|
||||||
{
|
{
|
||||||
|
@ -111,25 +111,29 @@ try{
|
||||||
{
|
{
|
||||||
$pspackageParams = @{'Type'='fxdependent'}
|
$pspackageParams = @{'Type'='fxdependent'}
|
||||||
}
|
}
|
||||||
|
elseif ($Runtime -eq 'fxdependent-win-desktop')
|
||||||
|
{
|
||||||
|
$pspackageParams = @{'Type'='fxdependent-win-desktop'}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$pspackageParams = @{'Type'='msi'; 'WindowsRuntime'=$Runtime}
|
$pspackageParams = @{'Type'='msi'; 'WindowsRuntime'=$Runtime}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$ComponentRegistration.IsPresent -and !$Symbols.IsPresent -and $Runtime -notmatch 'arm' -and $Runtime -ne 'fxdependent')
|
if (!$ComponentRegistration.IsPresent -and !$Symbols.IsPresent -and $Runtime -notmatch 'arm' -and $Runtime -notlike 'fxdependent*')
|
||||||
{
|
{
|
||||||
Write-Verbose "Starting powershell packaging(msi)..." -verbose
|
Write-Verbose "Starting powershell packaging(msi)..." -verbose
|
||||||
Start-PSPackage @pspackageParams @releaseTagParam
|
Start-PSPackage @pspackageParams @releaseTagParam
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$ComponentRegistration.IsPresent -and !$Symbols.IsPresent -and $Runtime -notin 'win7-x86','fxdependent')
|
if (!$ComponentRegistration.IsPresent -and !$Symbols.IsPresent -and $Runtime -notin 'win7-x86','fxdependent', 'fxdependent-win-desktop')
|
||||||
{
|
{
|
||||||
$pspackageParams['Type']='msix'
|
$pspackageParams['Type']='msix'
|
||||||
Write-Verbose "Starting powershell packaging(msix)..." -verbose
|
Write-Verbose "Starting powershell packaging(msix)..." -verbose
|
||||||
Start-PSPackage @pspackageParams @releaseTagParam
|
Start-PSPackage @pspackageParams @releaseTagParam
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$ComponentRegistration.IsPresent -and $Runtime -ne 'fxdependent')
|
if (!$ComponentRegistration.IsPresent -and $Runtime -notlike 'fxdependent*')
|
||||||
{
|
{
|
||||||
$pspackageParams['Type']='zip'
|
$pspackageParams['Type']='zip'
|
||||||
$pspackageParams['IncludeSymbols']=$Symbols.IsPresent
|
$pspackageParams['IncludeSymbols']=$Symbols.IsPresent
|
||||||
|
@ -144,7 +148,7 @@ try{
|
||||||
Copy-Item -Path $file -Destination "$destination\" -Force
|
Copy-Item -Path $file -Destination "$destination\" -Force
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (!$ComponentRegistration.IsPresent -and $Runtime -eq 'fxdependent')
|
elseif (!$ComponentRegistration.IsPresent -and $Runtime -like 'fxdependent*')
|
||||||
{
|
{
|
||||||
## Add symbols for just like zip package.
|
## Add symbols for just like zip package.
|
||||||
$pspackageParams['IncludeSymbols']=$Symbols.IsPresent
|
$pspackageParams['IncludeSymbols']=$Symbols.IsPresent
|
||||||
|
|
|
@ -59,6 +59,11 @@ jobs:
|
||||||
parameters:
|
parameters:
|
||||||
Architecture: fxdependent
|
Architecture: fxdependent
|
||||||
|
|
||||||
|
- template: templates/windows-build.yml
|
||||||
|
parameters:
|
||||||
|
Architecture: fxdependentWinDesktop
|
||||||
|
|
||||||
|
|
||||||
- template: templates/windows-component-governance.yml
|
- template: templates/windows-component-governance.yml
|
||||||
|
|
||||||
- template: templates/windows-package-signing.yml
|
- template: templates/windows-package-signing.yml
|
||||||
|
@ -69,6 +74,7 @@ jobs:
|
||||||
- build_windows_arm
|
- build_windows_arm
|
||||||
- build_windows_arm64
|
- build_windows_arm64
|
||||||
- build_windows_fxdependent
|
- build_windows_fxdependent
|
||||||
|
- build_windows_fxdependentWinDesktop
|
||||||
|
|
||||||
- template: templates/mac-package-signing.yml
|
- template: templates/mac-package-signing.yml
|
||||||
|
|
||||||
|
@ -78,6 +84,7 @@ jobs:
|
||||||
- build_windows_x64
|
- build_windows_x64
|
||||||
- build_windows_x86
|
- build_windows_x86
|
||||||
- build_windows_fxdependent
|
- build_windows_fxdependent
|
||||||
|
- build_windows_fxdependentWinDesktop
|
||||||
|
|
||||||
- template: templates/nuget.yml
|
- template: templates/nuget.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -15,6 +15,7 @@ jobs:
|
||||||
GenAPIToolPath: '$(System.ArtifactsDirectory)/GenAPI'
|
GenAPIToolPath: '$(System.ArtifactsDirectory)/GenAPI'
|
||||||
PackagePath: '$(System.ArtifactsDirectory)/UnifiedPackagePath'
|
PackagePath: '$(System.ArtifactsDirectory)/UnifiedPackagePath'
|
||||||
winFxdPath: '$(System.ArtifactsDirectory)/winFxd'
|
winFxdPath: '$(System.ArtifactsDirectory)/winFxd'
|
||||||
|
winFxdWinDesktopPath: '$(System.ArtifactsDirectory)/winFxdWinDesktop'
|
||||||
linuxFxdPath: '$(System.ArtifactsDirectory)/linuxFxd'
|
linuxFxdPath: '$(System.ArtifactsDirectory)/linuxFxd'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -56,6 +57,12 @@ jobs:
|
||||||
archiveFilePatterns: '$(System.ArtifactsDirectory)/packages/PowerShell-*-win-fxdependent.zip'
|
archiveFilePatterns: '$(System.ArtifactsDirectory)/packages/PowerShell-*-win-fxdependent.zip'
|
||||||
destinationFolder: '$(winFxdPath)'
|
destinationFolder: '$(winFxdPath)'
|
||||||
|
|
||||||
|
- task: ExtractFiles@1
|
||||||
|
displayName: 'Extract files win-fxdependentWinDesktop'
|
||||||
|
inputs:
|
||||||
|
archiveFilePatterns: '$(System.ArtifactsDirectory)/packages/PowerShell-*-win-fxdependentWinDesktop.zip'
|
||||||
|
destinationFolder: '$(winFxdWinDesktopPath)'
|
||||||
|
|
||||||
- task: ExtractFiles@1
|
- task: ExtractFiles@1
|
||||||
displayName: 'Extract files linux-fxdependent'
|
displayName: 'Extract files linux-fxdependent'
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -88,6 +95,7 @@ jobs:
|
||||||
- powershell: |
|
- powershell: |
|
||||||
Get-ChildItem $(linuxFxdPath)
|
Get-ChildItem $(linuxFxdPath)
|
||||||
Get-ChildItem $(winFxdPath)
|
Get-ChildItem $(winFxdPath)
|
||||||
|
Get-ChildItem $(winFxdWinDesktopPath)
|
||||||
displayName: Capture fxd folders
|
displayName: Capture fxd folders
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
@ -95,10 +103,10 @@ jobs:
|
||||||
Import-Module $env:BUILD_SOURCESDIRECTORY\tools\packaging
|
Import-Module $env:BUILD_SOURCESDIRECTORY\tools\packaging
|
||||||
|
|
||||||
# Create unified package first
|
# Create unified package first
|
||||||
New-GlobalToolNupkg -UnifiedPackage -LinuxBinPath "$(linuxFxdPath)" -WindowsBinPath "$(winFxdPath)" -PackageVersion "$(Version)" -DestinationPath "$(PackagePath)\globaltool"
|
New-GlobalToolNupkg -UnifiedPackage -LinuxBinPath "$(linuxFxdPath)" -WindowsBinPath "$(winFxdPath)" -WindowsDesktopBinPath "$(winFxdWinDesktopPath)" -PackageVersion "$(Version)" -DestinationPath "$(PackagePath)\globaltool"
|
||||||
|
|
||||||
# Create packages for dotnet sdk
|
# Create packages for dotnet sdk
|
||||||
New-GlobalToolNupkg -LinuxBinPath "$(linuxFxdPath)" -WindowsBinPath "$(winFxdPath)" -PackageVersion "$(Version)" -DestinationPath "$(PackagePath)\globaltool"
|
New-GlobalToolNupkg -LinuxBinPath "$(linuxFxdPath)" -WindowsBinPath "$(winFxdPath)" -WindowsDesktopBinPath "$(winFxdWinDesktopPath)" -PackageVersion "$(Version)" -DestinationPath "$(PackagePath)\globaltool"
|
||||||
displayName: 'Create Global tool packages'
|
displayName: 'Create Global tool packages'
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
|
|
@ -37,22 +37,6 @@ jobs:
|
||||||
parameters:
|
parameters:
|
||||||
ReleaseTagVar: $(ReleaseTagVar)
|
ReleaseTagVar: $(ReleaseTagVar)
|
||||||
|
|
||||||
- powershell: |
|
|
||||||
Write-Verbose -Verbose "$(Architecture)"
|
|
||||||
|
|
||||||
if ('$(Architecture)' -eq 'fxdependent' -and '$(ReleaseTagVar)' -match '6.0.*')
|
|
||||||
{
|
|
||||||
$vstsCommandString = "vso[task.setvariable variable=SkipFxDependent]true"
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$vstsCommandString = "vso[task.setvariable variable=SkipFxDependent]false"
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Verbose -Message "$vstsCommandString " -Verbose
|
|
||||||
Write-Host -Object "##$vstsCommandString"
|
|
||||||
displayName: 'Skip FxDependent for PS v6.0.*'
|
|
||||||
|
|
||||||
- template: insert-nuget-config-azfeed.yml
|
- template: insert-nuget-config-azfeed.yml
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
@ -61,7 +45,6 @@ jobs:
|
||||||
displayName: 'Remove all containers [Port to PSRelease]'
|
displayName: 'Remove all containers [Port to PSRelease]'
|
||||||
# Cleanup is not critical it passes every time it runs
|
# Cleanup is not critical it passes every time it runs
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
docker image ls --format '{{ json .}}'|ConvertFrom-Json| ForEach-Object {
|
docker image ls --format '{{ json .}}'|ConvertFrom-Json| ForEach-Object {
|
||||||
|
@ -80,7 +63,6 @@ jobs:
|
||||||
displayName: 'Remove old images [Port to PSRelease]'
|
displayName: 'Remove old images [Port to PSRelease]'
|
||||||
# Cleanup is not critical it passes every time it runs
|
# Cleanup is not critical it passes every time it runs
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
Write-verbose "--docker info---" -verbose
|
Write-verbose "--docker info---" -verbose
|
||||||
|
@ -93,15 +75,13 @@ jobs:
|
||||||
displayName: 'Capture docker info'
|
displayName: 'Capture docker info'
|
||||||
# Diagnostics is not critical it passes every time it runs
|
# Diagnostics is not critical it passes every time it runs
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
tools/releaseBuild/vstsbuild.ps1 -ReleaseTag $(ReleaseTagVar) -Name win-$(Architecture)-symbols
|
tools/releaseBuild/vstsbuild.ps1 -ReleaseTag $(ReleaseTagVar) -Name win-$(Architecture)-symbols
|
||||||
displayName: 'Build Windows Universal - $(Architecture) Symbols zip'
|
displayName: 'Build Windows Universal - $(Architecture) Symbols zip'
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
if ("$env:Architecture" -eq 'fxdependent')
|
if ("$env:Architecture" -like 'fxdependent*')
|
||||||
{
|
{
|
||||||
$(Build.SourcesDirectory)\tools\releaseBuild\updateSigning.ps1 -SkipPwshExe
|
$(Build.SourcesDirectory)\tools\releaseBuild\updateSigning.ps1 -SkipPwshExe
|
||||||
}
|
}
|
||||||
|
@ -110,14 +90,12 @@ jobs:
|
||||||
$(Build.SourcesDirectory)\tools\releaseBuild\updateSigning.ps1
|
$(Build.SourcesDirectory)\tools\releaseBuild\updateSigning.ps1
|
||||||
}
|
}
|
||||||
displayName: 'Update Signing Xml'
|
displayName: 'Update Signing Xml'
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
$vstsCommandString = "vso[task.setvariable variable=Symbols]${env:Symbols_$(Architecture)}"
|
$vstsCommandString = "vso[task.setvariable variable=Symbols]${env:Symbols_$(Architecture)}"
|
||||||
Write-Host "sending " + $vstsCommandString
|
Write-Host "sending " + $vstsCommandString
|
||||||
Write-Host "##$vstsCommandString"
|
Write-Host "##$vstsCommandString"
|
||||||
displayName: 'Get Symbols path [Update build.json]'
|
displayName: 'Get Symbols path [Update build.json]'
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- task: PkgESCodeSign@10
|
- task: PkgESCodeSign@10
|
||||||
displayName: 'CodeSign $(Architecture)'
|
displayName: 'CodeSign $(Architecture)'
|
||||||
|
@ -129,17 +107,16 @@ jobs:
|
||||||
outPathRoot: '$(Symbols)\signed'
|
outPathRoot: '$(Symbols)\signed'
|
||||||
binVersion: $(SigingVersion)
|
binVersion: $(SigingVersion)
|
||||||
binVersionOverride: $(SigningVersionOverride)
|
binVersionOverride: $(SigningVersionOverride)
|
||||||
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'), ne(variables['SkipFxDependent'], 'true'))
|
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'))
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
New-Item -ItemType Directory -Path $(Symbols)\signed -Force
|
New-Item -ItemType Directory -Path $(Symbols)\signed -Force
|
||||||
displayName: 'Create empty signed folder'
|
displayName: 'Create empty signed folder'
|
||||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'Manual'), ne(variables['SkipFxDependent'], 'true'))
|
condition: and(succeeded(), ne(variables['Build.Reason'], 'Manual'))
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
tools/releaseBuild/vstsbuild.ps1 -ReleaseTag $(ReleaseTagVar) -Name win-$(Architecture)-package -BuildPath $(Symbols) -SignedFilesPath $(Symbols)\signed
|
tools/releaseBuild/vstsbuild.ps1 -ReleaseTag $(ReleaseTagVar) -Name win-$(Architecture)-package -BuildPath $(Symbols) -SignedFilesPath $(Symbols)\signed
|
||||||
displayName: 'Build Windows Universal - $(Architecture) Package'
|
displayName: 'Build Windows Universal - $(Architecture) Package'
|
||||||
condition: and(succeeded(), ne(variables['SkipFxDependent'], 'true'))
|
|
||||||
|
|
||||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||||
displayName: 'Component Detection'
|
displayName: 'Component Detection'
|
||||||
|
|
|
@ -89,6 +89,13 @@ jobs:
|
||||||
msi: no
|
msi: no
|
||||||
msix: no
|
msix: no
|
||||||
|
|
||||||
|
- template: upload.yml
|
||||||
|
parameters:
|
||||||
|
architecture: fxdependentWinDesktop
|
||||||
|
version: $(version)
|
||||||
|
msi: no
|
||||||
|
msix: no
|
||||||
|
|
||||||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
|
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
|
||||||
displayName: 'Run Defender Scan'
|
displayName: 'Run Defender Scan'
|
||||||
|
|
||||||
|
|
|
@ -250,6 +250,45 @@
|
||||||
"BinaryBucket": "signed",
|
"BinaryBucket": "signed",
|
||||||
"ArtifactsExpected": 1,
|
"ArtifactsExpected": 1,
|
||||||
"EnableFeature": [ "ArtifactAsFolder" ]
|
"EnableFeature": [ "ArtifactAsFolder" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "win-fxdependentWinDesktop-symbols",
|
||||||
|
"RepoDestinationPath": "C:\\PowerShell",
|
||||||
|
"BuildCommand": "C:\\PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -Runtime fxdependent-win-desktop -ReleaseTag _ReleaseTag_ -Symbols",
|
||||||
|
"BuildDockerOptions": [
|
||||||
|
"-m",
|
||||||
|
"3968m"
|
||||||
|
],
|
||||||
|
"DockerFile": ".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\Dockerfile",
|
||||||
|
"AdditionalContextFiles" :[
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\PowerShellPackage.ps1",
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\wix.psm1",
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\dockerInstall.psm1"
|
||||||
|
],
|
||||||
|
"DockerImageName": "ps-winsrvcore",
|
||||||
|
"BinaryBucket": "results",
|
||||||
|
"ArtifactsExpected": 1,
|
||||||
|
"VariableForExtractedBinariesPath": "Symbols_fxdependentWinDesktop",
|
||||||
|
"EnableFeature": [ "ArtifactAsFolder" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "win-fxdependentWinDesktop-package",
|
||||||
|
"RepoDestinationPath": "C:\\PowerShell",
|
||||||
|
"BuildCommand": "C:\\PowerShellPackage.ps1 -BuildZip _RepoDestinationPath_\\_BuildPackageName_ -location _RepoDestinationPath_ -destination _DockerVolume_ -Runtime fxdependent-win-desktop -ReleaseTag _ReleaseTag_",
|
||||||
|
"BuildDockerOptions": [
|
||||||
|
"-m",
|
||||||
|
"3968m"
|
||||||
|
],
|
||||||
|
"DockerFile": ".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\Dockerfile",
|
||||||
|
"AdditionalContextFiles" :[
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\PowerShellPackage.ps1",
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\wix.psm1",
|
||||||
|
".\\tools\\releaseBuild\\Images\\microsoft_powershell_windowsservercore\\dockerInstall.psm1"
|
||||||
|
],
|
||||||
|
"DockerImageName": "ps-winsrvcore",
|
||||||
|
"BinaryBucket": "signed",
|
||||||
|
"ArtifactsExpected": 1,
|
||||||
|
"EnableFeature": [ "ArtifactAsFolder" ]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Linux": [
|
"Linux": [
|
||||||
|
|
Loading…
Reference in a new issue