We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ad62d commit fb5fcd7Copy full SHA for fb5fcd7
extension/BuildPhpExtension/private/Add-Package.ps1
@@ -51,9 +51,10 @@ function Add-Package {
51
# TODO: Filter these using deplister
52
if(Test-Path ..\deps\bin) {
53
Get-ChildItem -Path ..\deps\bin -Recurse -Include "*.dll", "*.pdb" | ForEach-Object {
54
- $fileName = $_.Name.Split('.')[0]
55
- if(-not(Test-Path "php-bin\$fileName.dll")) {
56
- Copy-Item -Path $_.FullName -Destination artifacts -Force
+ if(-not(Test-Path "php-bin\$($_.Name.Split('.')[0]).dll")) {
+ if($_.Extension -eq ".dll" -or (Test-Path ([IO.Path]::ChangeExtension($_.FullName, "dll")))) {
+ Copy-Item -Path $_.FullName -Destination artifacts -Force
57
+ }
58
}
59
60
if(Test-Path (Join-Path -Path ..\deps\bin -ChildPath "*.xml")) {
0 commit comments