cask "djstudio" do arch arm: "-arm64" livecheck_arch = on_arch_conditional arm: "-apple" version "4.2.15" sha256 arm: "34b1344985203bd4e881d966a136130a3cce2e09477bb8bdae467cca393605af", intel: "30c80d5c94cc38433a066593ceb9bd3b2e6b1ecf4049b8dc0fee21bc690bc321" url "https://download.dj.studio/DJ.Studio-#{version}#{arch}.dmg" name "DJ.Studio" desc "DAW for DJs" homepage "https://dj.studio/" livecheck do url "https://dj.studio/download/latest/mac#{livecheck_arch}" regex(/DJ\.Studio[._-]v?(\d+(?:\.\d+)+)#{arch}\.dmg/i) strategy :header_match end depends_on macos: :monterey app "DJ.Studio.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/dj.studio.app.sfl*", "~/Library/Application Support/DJ.Studio", "~/Library/Application Support/dj.studio.app", "~/Library/Preferences/dj.studio.app.plist", "~/Library/Saved Application State/dj.studio.app.savedState", ] end