cask "jellyfin-media-player" do version "1.11.1" on_ventura :or_older do # Monterey and Ventura require Rosetta on Apple Silicon arch arm: "Intel", intel: "Intel" sha256 "2683c358606d8b3196c890759331a29f204438e53408640429e832ca3d92ffe0" caveats do requires_rosetta end end on_sonoma :or_newer do arch arm: "AppleSilicon", intel: "Intel" sha256 arm: "6d5478a7eb457c0c842e3b4265f254d9504fe8e4c8bc5e49e59bf8c68d3cdfcd", intel: "2683c358606d8b3196c890759331a29f204438e53408640429e832ca3d92ffe0" end url "https://github.com/jellyfin/jellyfin-media-player/releases/download/v#{version}/JellyfinMediaPlayer-#{version}-#{arch}.dmg", verified: "github.com/jellyfin/jellyfin-media-player/" name "Jellyfin Media Player" desc "Jellyfin desktop client" homepage "https://jellyfin.org/" livecheck do url :url strategy :github_latest end depends_on macos: ">= :monterey" app "Jellyfin Media Player.app" zap trash: [ "~/Library/Application Support/Jellyfin Media Player", "~/Library/Caches/Jellyfin Media Player", "~/Library/Logs/Jellyfin Media Player", "~/Library/Preferences/org.jellyfin.Jellyfin Media Player.plist", "~/Library/Saved Application State/tv.jellyfin.player.savedState", ] end