cask "djstudio" do on_mojave :or_older do version "2.6.28" sha256 "a24739ad73b5fbda7c64aaae320b1486622c669ba3dc414d692def6026d2639d" url "https://github.com/AppMachine/dj-studio-app-updates/releases/download/v#{version}/DJ.Studio-#{version}.dmg", verified: "github.com/AppMachine/dj-studio-app-updates/" livecheck do skip "Legacy version" end end on_catalina :or_newer do arch arm: "-arm64" version "3.1.28" sha256 arm: "4044a73865511d7ace30c2fbd120c0caa6f6f42c0c4fe6ee34ce7bcb80050a34", intel: "eb53ab0af6f7aa25bbcdd45ca4ddad107701ba76016fb67a32e163e18825ce2e" url "https://github.com/AppMachine/dj-studio-app-updates/releases/download/v#{version}/DJ.Studio-#{version}#{arch}.dmg", verified: "github.com/AppMachine/dj-studio-app-updates/" livecheck do url :url strategy :github_latest end end name "DJ.Studio" desc "DAW for DJs" homepage "https://dj.studio/" depends_on macos: ">= :high_sierra" 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", "~/Music/DJ.Studio", ] end