Symlink extension dependencies on Windows instead of adding to PATH

This is done because other actions seem to mess with PATH breaking the installed extension
This commit is contained in:
Shivam Mathur 2021-05-12 22:34:57 +05:30
parent 9882bed066
commit 00f360b99d
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -134,7 +134,9 @@ Function Add-ExtensionPrerequisites{
New-Item $deps_dir -Type Directory 2>&1 | Out-Null New-Item $deps_dir -Type Directory 2>&1 | Out-Null
Install-PhpExtensionPrerequisite -Extension $extension -InstallPath $deps_dir -PhpPath $php_dir Install-PhpExtensionPrerequisite -Extension $extension -InstallPath $deps_dir -PhpPath $php_dir
} }
Add-Path -PathItem $deps_dir Get-ChildItem -Recurse -Path $deps_dir | ForEach-Object {
New-Item -Itemtype SymbolicLink -Path $php_dir -Name $_.Name -Target $_.FullName -Force >$null 2>&1
}
} }
} }