mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove PDBs from fxdependent pacakge (#8006)
# Conflicts: # tools/packaging/packaging.psm1
This commit is contained in:
@@ -283,7 +283,7 @@ function Start-PSPackage {
|
||||
"fxdependent" {
|
||||
## Remove PDBs from package to reduce size.
|
||||
if(-not $IncludeSymbols.IsPresent) {
|
||||
Get-ChildItem $Source -Filter *.pdb | Remove-Item -Force
|
||||
Get-ChildItem -Recurse $Source -Filter *.pdb | Remove-Item -Force
|
||||
}
|
||||
|
||||
if ($Environment.IsWindows) {
|
||||
|
||||
+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