Merge pull request #165471 from HuaDeity/mumu-player-pro

mumu-player 1.2.142 (new cask)
This commit is contained in:
Miccal Matthews
2024-02-01 08:47:57 +08:00
committed by GitHub
+41
View File
@@ -0,0 +1,41 @@
cask "mumuplayer" do
version "1.2.145"
sha256 "fe5e5285d077522b5c4ecc3b1804928f10c13ac031baa29cf32f3a45dabfdb5f"
url "https://a11.gdl.netease.com/MuMuPlayerPro-v#{version}.dmg",
verified: "a11.gdl.netease.com/"
name "Mumu Player Pro"
name "MuMu模拟器Pro"
desc "Android emulator"
homepage "https://mumu.163.com/mac/"
livecheck do
url "https://mumu.nie.netease.com/api/mac/pro/appcast/alter?architecture=arm64&version=#{version}"
regex(/^v?(\d+(?:\.\d+)+)$/i)
strategy :json do |json, regex|
json["items"]&.map do |item|
match = item["version"]&.match(regex)
next if match.blank?
match[1]
end
end
end
auto_updates true
depends_on macos: ">= :big_sur"
depends_on arch: :arm64
app "MuMuPlayer.app"
zap trash: [
"~/Library/Application Scripts/*.group.com.netease.mumu.nemux",
"~/Library/Application Support/com.netease.mumu.nemux",
"~/Library/Caches/com.netease.mumu.nemux*",
"~/Library/Group Containers/*.group.com.netease.mumu.nemux",
"~/Library/HTTPStorages/com.netease.mumu.nemux*",
"~/Library/Preferences/*.netease.mumu*.plist",
"~/Library/Saved Application State/com.netease.mumu.nemux*.savedState",
"~/Library/WebKit/com.netease.mumu.nemux*",
]
end