From 6c9d6b53bfa009d41cfef9c675e1f3fd3fad9ecc Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Thu, 30 May 2024 15:28:28 -0400 Subject: [PATCH] [script] switch to Amazon Corretto Java for brew packages --- script/bootstrap | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 9b64de4a..889e1001 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -77,18 +77,27 @@ install_packages_brew() { echo 'Installing script dependencies...' + brew update + brew_packages=( ccache coreutils git git-lfs grep - ninja-build - openjdk@17 + ninja unzip wget ) brew install "${brew_packages[@]}" + + # Casks only work on macOS + if [ "$(uname)" = "Darwin" ]; then + brew_casks=( + corretto@17 + ) + brew install --cask "${brew_casks[@]}" + fi } install_packages_source()