Skip to content

Commit

Permalink
devops(firefox): fix Firefox on Apple Silicon (#5272)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Feb 3, 2021
1 parent b392c57 commit 11f570b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browser_patches/firefox/build.sh
Expand Up @@ -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
Expand Down

0 comments on commit 11f570b

Please sign in to comment.