cask "volanta" do version "1.10.6,629170d4" sha256 "f2a617a86b81e389429ea5d64b9a2822ed9a1933c92d48b10e904b568e14fad7" url "https://cdn.volanta.app/software/volanta-app/#{version.csv.first}-#{version.csv.second}/volanta-#{version.csv.first}.dmg" name "Volanta" desc "Personal flight tracker" homepage "https://volanta.app/" livecheck do url "https://api.volanta.app/api/v1/ClientUpdate/latest-mac.yml" regex(%r{volanta-app/v?(\d+(?:\.\d+)+)[._-](\h+)/}i) strategy :electron_builder do |yaml, regex| yaml["files"]&.map do |item| match = item["url"]&.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end end depends_on macos: ">= :high_sierra" app "Volanta.app" zap trash: [ "~/Library/Application Support/Volanta", "~/Library/Logs/Volanta", "~/Library/Preferences/orbx.volanta.plist", "~/Library/Saved Application State/orbx.volanta.savedState", ] end