Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: fix webkit building on windows (#4618)

Andrey Lushnikovd8520f0695be
diff --git a/browser_patches/webkit/build.sh b/browser_patches/webkit/build.sh
index 2527d37918..e5a0144c70 100755
--- a/browser_patches/webkit/build.sh
+++ b/browser_patches/webkit/build.sh
@@ -4,6 +4,7 @@ set +x
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
+SCRIPT_FOLDER="$(pwd -P)"
build_gtk() {
if ! [[ -d ./WebKitBuild/GTK/DependenciesGTK ]]; then
@@ -69,7 +70,7 @@ elif [[ "$(uname)" == "Linux" ]]; then
build_wpe
fi
elif [[ "$(uname)" == MINGW* ]]; then
- /c/Windows/System32/cmd.exe "/c buildwin.bat"
+ /c/Windows/System32/cmd.exe "/c $(cygpath -w ${SCRIPT_FOLDER}/buildwin.bat)"
else
echo "ERROR: cannot upload on this platform!" 1>&2
exit 1;
diff --git a/browser_patches/webkit/buildwin.bat b/browser_patches/webkit/buildwin.bat
index 1d6977cc93..a6c238c6ff 100644
--- a/browser_patches/webkit/buildwin.bat
+++ b/browser_patches/webkit/buildwin.bat
@@ -1,5 +1,5 @@
set PATH=%WEBKIT_BUILD_PATH%
-set WEBKIT_LIBRARIES=%~dp0WebKitLibraries\win
-set WEBKIT_OUTPUTDIR=%~dp0WebKitBuild
-perl %~dp0Tools\Scripts\build-webkit --wincairo --release --no-ninja --touch-events --orientation-events --dark-mode-css --generate-project-only --cmakeargs="-DLIBVPX_PACKAGE_PATH=C:\vcpkg\packages\libvpx_x64-windows"
-%DEVENV% %~dp0WebKitBuild\Release\WebKit.sln /build "Release|x64"
+set WEBKIT_LIBRARIES=WebKitLibraries\win
+set WEBKIT_OUTPUTDIR=WebKitBuild
+perl Tools\Scripts\build-webkit --wincairo --release --no-ninja --touch-events --orientation-events --dark-mode-css --generate-project-only --cmakeargs="-DLIBVPX_PACKAGE_PATH=C:\vcpkg\packages\libvpx_x64-windows"
+%DEVENV% WebKitBuild\Release\WebKit.sln /build "Release|x64"