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 firefox preferences build on mac

Andrey Lushnikovefa567d1b436
diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh
index 3c4397ce16..fe8a8793a9 100755
--- a/browser_patches/firefox/build.sh
+++ b/browser_patches/firefox/build.sh
@@ -37,6 +37,11 @@ else
fi
./mach build
+
OBJ_FOLDER=$(ls -1 | grep obj-)
-node ../install-preferences.js $PWD/$OBJ_FOLDER/dist/bin
+if [[ "$(uname)" == "Darwin" ]]; then
+ node ../install-preferences.js $PWD/$OBJ_FOLDER/dist
+else
+ node ../install-preferences.js $PWD/$OBJ_FOLDER/dist/bin
+fi