excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / h / home-assistant.rb
blobf4be26c47eda728d4b5bf22a0aaa39757a613c3b
1 cask "home-assistant" do
2   version "2024.9.5,2024.986"
3   sha256 "45a50a58f56407c82361468ab04d6f1178542610cf2dc7aa3559bfe088de13db"
5   url "https://github.com/home-assistant/iOS/releases/download/release%2F#{version.csv.first}%2F#{version.csv.second}/home-assistant-mac.zip",
6       verified: "github.com/home-assistant/iOS/"
7   name "Home Assistant"
8   desc "Companion app for Home Assistant home automation software"
9   homepage "https://companion.home-assistant.io/"
11   livecheck do
12     url :url
13     regex(%r{^(?:mac|release)/(\d+(?:\.\d+)+)/(\d+(?:\.\d+)*)}i)
14     strategy :github_latest do |json, regex|
15       json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
16     end
17   end
19   depends_on macos: ">= :catalina"
21   app "Home Assistant.app"
23   zap trash: [
24     "~/Library/Application Scripts/io.robbie.HomeAssistant",
25     "~/Library/Containers/io.robbie.HomeAssistant",
26     "~/Library/Group Containers/group.io.robbie.homeassistant",
27   ]
28 end