cask "wordpresscom-studio" do arch arm: "arm64", intel: "x64" version "1.2.1" sha256 arm: "5576567adae9f24819d8129c3ced06d6cfce66b97e5d06fa5f70e708d54f056a", intel: "6b82b595d8aacf7fdca56bf4e93be86aaddc66341640f34d04e160cc0e6306b4" url "https://cdn.a8c-ci.services/studio/studio-darwin-#{arch}-v#{version}.dmg", verified: "cdn.a8c-ci.services/studio/" name "Wordpress Studio" desc "WordPress local development environment" homepage "https://developer.wordpress.com/studio/" livecheck do url :homepage regex(/studio[._-]darwin[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end auto_updates true depends_on macos: ">= :catalina" app "Studio.app" uninstall quit: "com.electron.studio" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.studio.sfl*", "~/Library/Application Support/Studio", "~/Library/Caches/com.electron.studio*", "~/Library/HTTPStorages/com.electron.studio", "~/Library/Logs/Studio", "~/Library/Preferences/com.electron.studio.plist", "~/Library/Saved Application State/com.electron.studio.savedState", ] end