cask "retro-virtual-machine" do version "2.1.17" sha256 "da2bcf0b6ef9ff84dcb587a443f4925592d24900fbe958f90a04ea5b7067ce40" url "https://static.retrovm.org/release/#{version}/RetroVirtualMachine.#{version}.dmg", verified: "static.retrovm.org/release/" name "Retro Virtual Machine" desc "ZX Spectrum and Amstrad CPC emulator" homepage "https://www.retrovirtualmachine.org/" livecheck do url "https://www.retrovirtualmachine.org/download/" regex(/RetroVirtualMachine[._-](\d+(?:\.\d+)+)\.dmg/i) end app "Retro Virtual Machine #{version.major_minor}.app" zap trash: [ "~/Library/Application Support/Retro Virtual Machine v#{version.major_minor}.x", "~/Library/Preferences/com.madeinalacant.RetroVirtualMachine#{version.major_minor}.plist", ] end