mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove PDBs from fxdependent pacakge (#8006)
This commit is contained in:
committed by
Travis Plunk
parent
5b4e9a9881
commit
5fcab21111
@@ -269,6 +269,11 @@ function Start-PSPackage {
|
||||
}
|
||||
}
|
||||
"fxdependent" {
|
||||
## Remove PDBs from package to reduce size.
|
||||
if(-not $IncludeSymbols.IsPresent) {
|
||||
Get-ChildItem -Recurse $Source -Filter *.pdb | Remove-Item -Force
|
||||
}
|
||||
|
||||
if ($IsWindows) {
|
||||
$Arguments = @{
|
||||
PackageNameSuffix = $NameSuffix
|
||||
|
||||
+6
-1
@@ -94,7 +94,12 @@ try{
|
||||
{
|
||||
Write-Verbose "Starting powershell build for RID: $Runtime and ReleaseTag: $ReleaseTag ..." -verbose
|
||||
$buildParams = @{'CrossGen'= $Runtime -notmatch "arm" -and $Runtime -ne "fxdependent"}
|
||||
if(!$Symbols.IsPresent)
|
||||
|
||||
if($Symbols.IsPresent)
|
||||
{
|
||||
$buildParams['NoPSModuleRestore'] = $true
|
||||
}
|
||||
else
|
||||
{
|
||||
$buildParams['PSModuleRestore'] = $true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user