Skip to content

Commit fb5fcd7

Browse files
committed
Fix packaging to not include pdf files without DLLs
1 parent 06ad62d commit fb5fcd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extension/BuildPhpExtension/private/Add-Package.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ function Add-Package {
5151
# TODO: Filter these using deplister
5252
if(Test-Path ..\deps\bin) {
5353
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
54+
if(-not(Test-Path "php-bin\$($_.Name.Split('.')[0]).dll")) {
55+
if($_.Extension -eq ".dll" -or (Test-Path ([IO.Path]::ChangeExtension($_.FullName, "dll")))) {
56+
Copy-Item -Path $_.FullName -Destination artifacts -Force
57+
}
5758
}
5859
}
5960
if(Test-Path (Join-Path -Path ..\deps\bin -ChildPath "*.xml")) {

0 commit comments

Comments
 (0)