cask "dolphin@dev" do version "2609-79,e0,36" sha256 "e5a053ec2205b10de9adb96224ccd43e023db5e0b3b75b2cb476206a283bdf5f" url "https://dl.dolphin-emu.org/builds/#{version.csv.second}/#{version.csv.third}/dolphin-master-#{version.csv.first}-universal.dmg" name "Dolphin Dev" desc "Emulator to play GameCube and Wii games" homepage "https://dolphin-emu.org/" livecheck do url "https://dolphin-emu.org/update/latest/dev/" regex(%r{/builds/([^/]+?)/([^/]+?)/dolphin.*?\.dmg}i) strategy :json do |json, regex| json["artifacts"]&.map do |artifact| match = artifact["url"]&.match(regex) next if match.blank? "#{json["shortrev"]},#{match[1]},#{match[2]}" end end end auto_updates true conflicts_with cask: "dolphin" depends_on :macos app "Dolphin.app" uninstall quit: "org.dolphin-emu.dolphin" zap trash: [ "~/Library/Application Support/Dolphin", "~/Library/Preferences/org.dolphin-emu.dolphin.plist", "~/Library/Saved Application State/org.dolphin-emu.dolphin.savedState", ] end