mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* fix(packaging): require macOS 13.4, which the bundled speech engine needs * fix(updater): keep the macOS requirement title clear of the close button * fix(packaging): check out the Darwin floor table for adhoc builds and raise the cask floor * refactor(updater): reuse the parsed Darwin floor for the macOS requirement * fix(updater): use a margin to keep the macOS requirement title clear of the close button * fix(updater): say the macOS requirement comes from Electron and the speech engine
50 lines
1.6 KiB
Ruby
50 lines
1.6 KiB
Ruby
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"
|
||
|
||
# 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
|