homebrew-cask/Casks/m/mini-program-studio.rb

31 lines
1.2 KiB
Ruby

cask "mini-program-studio" do
arch arm: "-arm64", intel: "-x64"
version "3.8.21"
sha256 arm: "d79d1a12eb4ff3b7c64b65a3b90e30f890846534b1cd03f435f30bcffc80c3b6",
intel: "41464c65c00dc75f5acf7d73964b1ed0b67ee7922c22dc1b987d80bdd71506ff"
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
app "小程序开发者工具.app"
zap trash: [
"~/Library/Application Support/小程序开发者工具",
"~/Library/Preferences/com.ant.miniprogram.plist",
"~/Library/Saved Application State/com.ant.miniprogram.savedState",
]
end