hex/packaging/homebrew/hex.rb
Dax Raad b468fc9fb8 ci(release): publish the Homebrew cask from the Release workflow
A homebrew job renders anomalyco/tap/hex from the published DMG (anomaly.hex, auto_updates, release-service livecheck, zap paths), checks it with brew style and brew audit on a macOS runner, and on stable pushes it to anomalyco/homebrew-tap with the deploy key github-actions-hex-homebrew; record-brew then records the brew distribution. The manual cask step and the brew-version dispatch are gone.
2026-10-27 09:42:17 -04:00

33 lines
711 B
Ruby

cask "hex" do
version "@VERSION@"
sha256 "@SHA256@"
url "@URL@"
name "Hex"
desc "Local voice dictation"
homepage "https://anoma.ly/hex/"
livecheck do
url "https://anoma.ly/release/hex/desktop/stable.json"
strategy :json do |json|
json.dig("release", "version")
end
end
auto_updates true
depends_on arch: :arm64
depends_on macos: ">= :sequoia"
app "Hex.app"
uninstall quit: "anomaly.hex"
zap trash: [
"~/.config/hex",
"~/Library/Application Support/hex",
"~/Library/Caches/anomaly.hex",
"~/Library/HTTPStorages/anomaly.hex",
"~/Library/Preferences/anomaly.hex.plist",
"~/Library/Saved Application State/anomaly.hex.savedState",
]
end