You've already forked homebrew-cask
mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-04-22 15:25:17 -07:00
31 lines
1.2 KiB
Ruby
31 lines
1.2 KiB
Ruby
cask "mini-program-studio" do
|
|
arch arm: "-arm64", intel: "-x64"
|
|
|
|
version "3.8.15"
|
|
sha256 arm: "a65024bf647f29e293e03ee99fcd9f3fcb001e8526684cb70d3038d5b849b6ff",
|
|
intel: "e8adf1c6384c237e3501d8db02a62e4fbed730f1cd7ad6b04f7b9f46b7228dd3"
|
|
|
|
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
|