cask "vcv-rack" do version "2.5.2" sha256 "f60ff318a131de2cebb7d48c79f0beec06f933af827f15773721d5dee272f4fc" url "https://vcvrack.com/downloads/RackFree-#{version}-mac-x64+arm64.pkg" name "VCV Rack" desc "Open-source virtual modular synthesiser" homepage "https://vcvrack.com/" livecheck do url "https://raw.githubusercontent.com/VCVRack/Rack/v#{version.major}/CHANGELOG.md" regex(/###\s(\d+(?:\.\d+)+)/i) end pkg "RackFree-#{version}-mac-x64+arm64.pkg" uninstall pkgutil: "com.vcvrack.rack" zap trash: [ "~/Documents/Rack2/*.json", "~/Documents/Rack2/autosave", "~/Documents/Rack2/log.txt", "~/Documents/Rack2/plugins-mac-arm64", "~/Documents/Rack2/plugins-mac-x64", "~/Library/Application Support/Rack2/*.json", "~/Library/Application Support/Rack2/autosave", "~/Library/Application Support/Rack2/log.txt", "~/Library/Application Support/Rack2/plugins-mac-arm64", "~/Library/Application Support/Rack2/plugins-mac-x64", ] end