mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-24 00:52:06 +01:00
Fix packaging to not include pdf files without DLLs
This commit is contained in:
@@ -51,9 +51,10 @@ function Add-Package {
|
||||
# TODO: Filter these using deplister
|
||||
if(Test-Path ..\deps\bin) {
|
||||
Get-ChildItem -Path ..\deps\bin -Recurse -Include "*.dll", "*.pdb" | ForEach-Object {
|
||||
$fileName = $_.Name.Split('.')[0]
|
||||
if(-not(Test-Path "php-bin\$fileName.dll")) {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
if(Test-Path (Join-Path -Path ..\deps\bin -ChildPath "*.xml")) {
|
||||
|
||||
Reference in New Issue
Block a user