fix(homebrew): keep macOS 13.0–13.3 Macs on the Orca they can open (#39264)

Orca now needs macOS 13.4, but depends_on can only say Ventura, and
Homebrew 7 upgrades auto_updates casks by default. A preflight step
refuses the upgrade below 13.4 so Homebrew reverts to the installed app.
This commit is contained in:
Kelvin Amoaba
2026-11-07 02:32:34 +00:00
committed by GitHub
parent f308486115
commit 15d71e2dc0
2 changed files with 19 additions and 1 deletions
+10 -1
View File
@@ -15,7 +15,7 @@ cask "orca" do
strategy :github_latest
end
# Let the in-app updater own updates; Homebrew skips auto_updates unless --greedy.
# Let the in-app updater own updates between brew upgrades.
auto_updates true
conflicts_with cask: "orca@rc"
depends_on macos: :ventura
@@ -25,6 +25,15 @@ cask "orca" do
# Expose the symlink-resolving bundled CLI on PATH so headless hosts can use orca serve without the in-app installer.
binary "#{appdir}/Orca.app/Contents/Resources/bin/orca"
# depends_on can't say 13.4, and Homebrew upgrades auto_updates casks past the in-app updater's macOS gate.
preflight_steps do
run "/bin/sh", args: [
"-c",
'case "$(/usr/bin/sw_vers -productVersion)" in 13|13.[0-3]|13.[0-3].*) ' \
'echo "Orca needs macOS 13.4 or later. Update macOS to upgrade Orca." >&2; exit 1;; esac',
]
end
# Zap app-created ~/.orca and Electron userData for a clean uninstall.
zap trash: [
"~/.orca",
+9
View File
@@ -36,6 +36,15 @@ cask "orca@rc" do
# Expose the symlink-resolving bundled CLI on PATH so headless hosts can use orca serve without the in-app installer.
binary "#{appdir}/Orca.app/Contents/Resources/bin/orca"
# depends_on can't say 13.4, and Homebrew upgrades auto_updates casks past the in-app updater's macOS gate.
preflight_steps do
run "/bin/sh", args: [
"-c",
'case "$(/usr/bin/sw_vers -productVersion)" in 13|13.[0-3]|13.[0-3].*) ' \
'echo "Orca needs macOS 13.4 or later. Update macOS to upgrade Orca." >&2; exit 1;; esac',
]
end
# Zap app-created ~/.orca and Electron userData for a clean uninstall.
zap trash: [
"~/.orca",