excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / h / headlamp.rb
blobdad2049b6ef8a5a0c72e87e351ba90e46d078633
1 cask "headlamp" do
2   arch arm: "arm64", intel: "x64"
4   version "0.26.0"
5   sha256 arm:   "5786bf7333c70fd27a350993bc7f0fab81d36ce6165070c38998cdbe2b192d71",
6          intel: "2d88bc3693f70a09c33258f5c4c4c7558a9d6509615031394fa3a94e95e6bd0a"
8   url "https://github.com/headlamp-k8s/headlamp/releases/download/v#{version.sub(/-\d+/, "")}/Headlamp-#{version}-mac-#{arch}.dmg",
9       verified: "github.com/headlamp-k8s/headlamp/"
10   name "Headlamp"
11   desc "UI for Kubernetes"
12   homepage "https://headlamp.dev/"
14   livecheck do
15     url :url
16     regex(/Headlamp[._-]v?(\d+(?:[.-]\d+)+)-mac-#{arch}/i)
17     strategy :github_latest do |json, regex|
18       json["assets"]&.map do |asset|
19         match = asset["name"]&.match(regex)
20         next if match.blank?
22         match[1]
23       end
24     end
25   end
27   depends_on macos: ">= :catalina"
29   app "Headlamp.app"
31   uninstall quit: "com.kinvolk.headlamp"
33   zap trash: [
34     "~/Library/Application Support/Headlamp",
35     "~/Library/Logs/Headlamp",
36     "~/Library/Preferences/com.kinvolk.headlamp.plist",
37   ]
38 end