From 5dfdd6e17d7dda2243ee19bae3e0b25cce62b390 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Aug 2026 23:07:47 +0000 Subject: [PATCH 1/2] Initial plan From 7577b3b86f8c6823b808e06d5d0d22dd5291fd8e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Aug 2026 23:10:59 +0000 Subject: [PATCH 2/2] fix: skip macOS GUI brew installs in CI Co-authored-by: PartTimeLegend <791578+PartTimeLegend@users.noreply.github.com> --- NewMachineSetup.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/NewMachineSetup.sh b/NewMachineSetup.sh index 16d4dfb..e18b797 100755 --- a/NewMachineSetup.sh +++ b/NewMachineSetup.sh @@ -406,7 +406,20 @@ update_homebrew() { install_brewfile() { echo "Installing packages and applications from Brewfile..." local brew_bundle_args=(--verbose) - if ! invoke_with_retry "Install Brewfile dependencies" brew bundle "${brew_bundle_args[@]}"; then + local -a brew_bundle_cmd=(brew bundle "${brew_bundle_args[@]}") + + if is_ci_environment && [ "$(uname -s)" = "Darwin" ]; then + echo "Skipping Homebrew casks and Mac App Store apps in CI." + if ! invoke_with_retry \ + "Install Brewfile dependencies" \ + env HOMEBREW_BUNDLE_NO_INSTALL_CASK=1 HOMEBREW_BUNDLE_NO_INSTALL_MAS=1 "${brew_bundle_cmd[@]}"; then + record_failure "Brewfile" "bundle_install_failed" + return 1 + fi + return 0 + fi + + if ! invoke_with_retry "Install Brewfile dependencies" "${brew_bundle_cmd[@]}"; then record_failure "Brewfile" "bundle_install_failed" return 1 fi