From 00f360b99d827fc1a61b651240a7cd449a6ddb03 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 12 May 2021 22:34:57 +0530 Subject: [PATCH] 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 --- src/scripts/win32.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index dc052631..05fc0b15 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -134,7 +134,9 @@ Function Add-ExtensionPrerequisites{ New-Item $deps_dir -Type Directory 2>&1 | Out-Null 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 + } } }