Skip to content

Commit

Permalink
build.ps1 - Remove cef.redist dependency when only packaging a subset…
Browse files Browse the repository at this point in the history
… of architectures

Issue #4066
  • Loading branch information
amaitland committed Apr 19, 2022
1 parent 59f9608 commit 80ea921
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,14 @@ function Nupkg
{
$targetFolder = "runtimes\win-$a"
}
else
{
# Remove cef.redist dependency
$depNode = $NupkgXml.package.metadata.dependencies.group.dependency | Where-Object {$_.Attributes["id"].Value.Equals("cef.redist." + $a) };
$depNode.ParentNode.RemoveChild($depNode) | Out-Null
}

#Remove files
$nodes = $NupkgXml.package.files.file | Where-Object {$_.Attributes["target"].Value.StartsWith($targetFolder) };

$nodes | ForEach-Object { $_.ParentNode.RemoveChild($_) } | Out-Null
Expand Down

0 comments on commit 80ea921

Please sign in to comment.