mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops(win): fix paths to vswhere.exe in 64-bit shells (#4577)
The `$PROGRAMFILES` variable is defined per the bitness of the application: 32-bit shells get `C:\Program Files (x86)`, whereas 64-bit shells get `C:\Program Files`. Visual Studio, however, has only 32-bit build and is always located in the `C:\Program Files (x86)` folder. This patch fixes `//browser_patches/firefox/build.sh` on 64-bit windows shell.
This commit is contained in:
parent
3d6194e8a1
commit
31e22dee50
@ -31,10 +31,10 @@ elif [[ "$(uname)" == MINGW* ]]; then
|
|||||||
echo "-- building win64 build on MINGW"
|
echo "-- building win64 build on MINGW"
|
||||||
echo "ac_add_options --target=x86_64-pc-mingw32" > .mozconfig
|
echo "ac_add_options --target=x86_64-pc-mingw32" > .mozconfig
|
||||||
echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig
|
echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig
|
||||||
DLL_FILE=$("$PROGRAMFILES\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
||||||
else
|
else
|
||||||
echo "-- building win32 build on MINGW"
|
echo "-- building win32 build on MINGW"
|
||||||
DLL_FILE=$("$PROGRAMFILES\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x86\**\vcruntime140.dll')
|
DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x86\**\vcruntime140.dll')
|
||||||
fi
|
fi
|
||||||
WIN32_REDIST_DIR=$(dirname "$DLL_FILE")
|
WIN32_REDIST_DIR=$(dirname "$DLL_FILE")
|
||||||
if ! [[ -d $WIN32_REDIST_DIR ]]; then
|
if ! [[ -d $WIN32_REDIST_DIR ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user