Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mini-program-studio.rb
blobfab35751abdaba1a99ba41126de348d44fe05dd0
1 cask "mini-program-studio" do
2   arch arm: "-arm64", intel: "-x64"
4   version "3.9.31"
5   sha256 arm:   "7c57dc47d09c388bb278fcd5f1d0a6f9194653eb2a30771a84c0b7176b0e91f1",
6          intel: "160637d7dacb1a6d7238c01350e0d429eae3d954b2e4d5dd3f0e3979fc2df612"
8   url "https://alipay-miniapp-public.oss-cn-hangzhou.aliyuncs.com/mfupload/MiniProgramStudio-#{version}#{arch}.dmg",
9       verified: "alipay-miniapp-public.oss-cn-hangzhou.aliyuncs.com/mfupload/"
10   name "Mini Program Studio"
11   name "小程序开发者工具"
12   desc "IDE for the development of Alipay applets"
13   homepage "https://opendocs.alipay.com/mini/ide"
15   # The download page (https://opendocs.alipay.com/mini/ide/download) is
16   # rendered using JavaScript. The URL below returns JSON data that contains
17   # the HTML for the release information, so we can match within that.
18   livecheck do
19     url "https://opendocs.alipay.com/api/content/006l6m"
20     regex(/MiniProgramStudio[._-](\d+(?:\.\d+)*)/i)
21   end
23   app "小程序开发者工具.app"
25   zap trash: [
26     "~/Library/Application Support/小程序开发者工具",
27     "~/Library/Preferences/com.ant.miniprogram.plist",
28     "~/Library/Saved Application State/com.ant.miniprogram.savedState",
29   ]
30 end