cask "mweb-pro" do version "4.6.6" sha256 "63686635856d0741753d7ccd9ad5503027945d6692c208b12776a63854b8d5a4" url "https://cdn.mwebapp.cn/MWebPro#{version.no_dots}.dmg", verified: "cdn.mwebapp.cn/" name "MWeb Pro" desc "Markdown writing, note taking, and static blog generator app" homepage "https://www.mweb.im/" livecheck do url "https://www.mweb.im/update_v#{version.major}.json" strategy :json do |json| json["version"] end end depends_on macos: ">= :high_sierra" app "MWeb Pro.app" zap trash: [ "~/Library/Application Scripts/com.coderforart.MWeb*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.coderforart.mweb*.sfl*", "~/Library/Application Support/MWeb", "~/Library/Containers/com.coderforart.MWeb*", "~/Library/Cookies/com.coderforart.MWeb*.binarycookies", "~/Library/Preferences/com.coderforart.MWeb*.plist", ] end