Skip to content

Commit

Permalink
misc: support mac arm64 in download-chrome.sh (#15650)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Nov 30, 2023
1 parent bd82605 commit 0f7289a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/scripts/download-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ if [ "$machine" == "MinGw" ]; then
elif [ "$machine" == "Linux" ]; then
url="https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots"
elif [ "$machine" == "Mac" ]; then
url="https://download-chromium.appspot.com/dl/Mac?type=snapshots"
arch="$(uname -m)"
if [ "$arch" == "arm64" ]; then
url="https://download-chromium.appspot.com/dl/Mac_Arm?type=snapshots"
else
url="https://download-chromium.appspot.com/dl/Mac?type=snapshots"
fi
else
echo "unsupported platform"
exit 1
Expand Down

0 comments on commit 0f7289a

Please sign in to comment.