Files
orca/Casks/orca@rc.rb
T
Kelvin Amoaba 15d71e2dc0 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.
2026-11-07 02:32:34 +00:00

59 lines
1.9 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
cask "orca@rc" do
arch arm: "arm64", intel: "x64"
version "1.4.36-rc.3"
sha256 arm: "563b6b14323fc9d5489299c82442d514bc12cabffc9d06d3964ed572af4b3955",
intel: "457088c7021f07de1a419197f7b2bd00092741ad4727d4fef3d86af38a6831e7"
url "https://github.com/stablyai/orca/releases/download/v#{version}/orca-macos-#{arch}.dmg"
name "Orca RC"
desc "IDE for orchestrating AI coding agents across terminals and worktrees"
homepage "https://onorca.dev/"
livecheck do
url "https://github.com/stablyai/orca"
regex(/^v?(\d+(?:\.\d+)+-rc\.\d+)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]
next unless release["prerelease"]
match = release["tag_name"]&.match(regex)
next if match.blank?
match[1]
end
end
end
# Use Orca’s prerelease-aware updater between frequent RCs.
auto_updates true
conflicts_with cask: "orca"
depends_on macos: :ventura
app "Orca.app"
# 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",
"~/Library/Application Support/Orca",
"~/Library/Caches/com.stablyai.orca",
"~/Library/Caches/com.stablyai.orca.ShipIt",
"~/Library/HTTPStorages/com.stablyai.orca",
"~/Library/Preferences/com.stablyai.orca.plist",
"~/Library/Saved Application State/com.stablyai.orca.savedState",
]
end