devops(firefox): fix Firefox on Apple Silicon (#5272)

As per guide at https://docs.google.com/document/d/1N5yfEVEISofMmjAxfj3xXONGwyQYBSilsfXqux_M6TM/edit
This commit is contained in:
Andrey Lushnikov 2021-02-02 21:53:23 -08:00 committed by GitHub
parent b392c57a53
commit 11f570be61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,12 @@ OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
if [[ $1 == "--full" ]]; then
SHELL=/bin/sh ./mach bootstrap --application-choice=browser --no-interactive --no-system-changes
if [[ "$(uname)" == "Darwin" && "$(uname -m)" == "arm64" ]]; then
./mach artifact toolchain --from-build macosx64-node
mv node "$HOME/.mozbuild"
elif [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
SHELL=/bin/sh ./mach bootstrap --application-choice=browser --no-interactive --no-system-changes
fi
fi
if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then