mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
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:
+10
-1
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user