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-beta build (#14495)

Andrey Lushnikov59c7e7aaa45e
diff --git a/browser_patches/firefox-beta/BUILD_NUMBER b/browser_patches/firefox-beta/BUILD_NUMBER
index d2b3483b18..050bdb8edf 100644
--- a/browser_patches/firefox-beta/BUILD_NUMBER
+++ b/browser_patches/firefox-beta/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1326
-Changed: [email protected] Tue May 31 10:19:28 +03 2022
+1327
+Changed: [email protected] Tue May 31 11:00:16 +03 2022
diff --git a/browser_patches/firefox-beta/archive.sh b/browser_patches/firefox-beta/archive.sh
index a98edfdb19..22d455d25f 100755
--- a/browser_patches/firefox-beta/archive.sh
+++ b/browser_patches/firefox-beta/archive.sh
@@ -40,6 +40,8 @@ OBJ_FOLDER="${FF_CHECKOUT_PATH}/obj-build-playwright"
cd "${FF_CHECKOUT_PATH}"
+export MH_BRANCH=mozilla-beta
+export MOZ_BUILD_DATE=$(date +%Y%m%d%H%M%S)
if [[ "$2" == "--linux-arm64" ]]; then
CMD_STRIP=/usr/bin/aarch64-linux-gnu-strip ./mach package
else
diff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.sh
index 12d8ca26cb..3a09b73ad9 100755
--- a/browser_patches/firefox-beta/build.sh
+++ b/browser_patches/firefox-beta/build.sh
@@ -109,7 +109,15 @@ if [[ $1 == "--juggler" ]]; then
elif [[ $1 == "--bootstrap" ]]; then
./mach configure
else
- MOZ_AUTOMATION=1 MOZ_FETCHES_DIR=$HOME/.mozbuild ./mach build
+ export MOZ_AUTOMATION=1
+ # Use winpaths instead of unix paths on Windows.
+ # note: 'cygpath' is not available in MozBuild shell.
+ if is_win; then
+ export MOZ_FETCHES_DIR="${USERPROFILE}\\.mozbuild"
+ else
+ export MOZ_FETCHES_DIR="${HOME}/.mozbuild"
+ fi
+ ./mach build
if is_mac; then
node "${SCRIPT_FOLDER}"/install-preferences.js "$PWD"/${OBJ_FOLDER}/dist
else