cask "vcv-rack" do version "2.6.6" sha256 "5ecbe5c0c1e66c8628c98d7902e6c7542204e0199168907a74e812d08423096c" 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 depends_on :macos 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