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" binary "#{appdir}/Hex.app/Contents/MacOS/hex" 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