mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
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:
parent
9882bed066
commit
00f360b99d
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user