cask "mini-program-studio" do arch arm: "-arm64", intel: "-x64" version "3.9.71" sha256 arm: "32a937375f46e676a8d11d120704dd82934c101608a1b7cd73a8e71d6a8ec6a9", intel: "e67173109612ebf385d3fb7529bb44436defce966c154827095d9f49169be239" url "https://alipay-miniapp-public.oss-cn-hangzhou.aliyuncs.com/mfupload/MiniProgramStudio-#{version}#{arch}.dmg", verified: "alipay-miniapp-public.oss-cn-hangzhou.aliyuncs.com/mfupload/" name "Mini Program Studio" name "小程序开发者工具" desc "IDE for the development of Alipay applets" homepage "https://opendocs.alipay.com/mini/ide" # The download page (https://opendocs.alipay.com/mini/ide/download) is # rendered using JavaScript. The URL below returns JSON data that contains # the HTML for the release information, so we can match within that. livecheck do url "https://opendocs.alipay.com/api/content/006l6m" regex(/MiniProgramStudio[._-](\d+(?:\.\d+)*)/i) end depends_on macos: ">= :catalina" app "小程序开发者工具.app" zap trash: [ "~/Library/Application Support/小程序开发者工具", "~/Library/Preferences/com.ant.miniprogram.plist", "~/Library/Saved Application State/com.ant.miniprogram.savedState", ] end