Skip to content

Commit 06ad62d

Browse files
committed
Fix packaging to not include existing DLLs in PHP distribution
1 parent 721af42 commit 06ad62d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extension/BuildPhpExtension/private/Add-Package.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +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-
Copy-Item -Path $_.FullName -Destination artifacts -Force
54+
$fileName = $_.Name.Split('.')[0]
55+
if(-not(Test-Path "php-bin\$fileName.dll")) {
56+
Copy-Item -Path $_.FullName -Destination artifacts -Force
57+
}
5558
}
5659
if(Test-Path (Join-Path -Path ..\deps\bin -ChildPath "*.xml")) {
5760
New-Item -ItemType Directory -Path artifacts\config -Force | Out-Null

0 commit comments

Comments
 (0)