Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mumu.rb
blobb1b6b93e00a5d0a90fe9d736be4de2e2af3d52ae
1 cask "mumu" do
2   version "1.1.9,z1OGCA1HTEaGuREtlgxX"
3   sha256 "e957259d2eb69aaf0cf3ba6c09f06561784a538a3f81bc84ab8c91b3d2590438"
5   url "https://paddle.s3.amazonaws.com/fulfillment_downloads/116824/597910/#{version.csv.second}_Mumu%20#{version.csv.first}.dmg",
6       verified: "paddle.s3.amazonaws.com/fulfillment_downloads/116824/597910/"
7   name "Mumu"
8   desc "Emoji picker"
9   homepage "https://getmumu.com/"
11   livecheck do
12     url "https://vendors.paddle.com/download/product/597910"
13     regex(%r{/([^/]+)_Mumu%20(\d+(?:\.\d+)*)\.dmg}i)
14     strategy :header_match do |headers, regex|
15       match = headers["location"]&.match(regex)
16       next if match.blank?
18       "#{match[2]},#{match[1]}"
19     end
20   end
22   depends_on macos: ">= :high_sierra"
24   app "Mumu.app"
26   zap trash: [
27     "~/Library/Application Support/com.wilbertliu.mumu",
28     "~/Library/Application Support/Mumu",
29     "~/Library/Caches/com.wilbertliu.mumu",
30     "~/Library/Cookies/com.wilbertliu.mumu.binarycookies",
31     "~/Library/Preferences/com.wilbertliu.mumu.plist",
32   ]
34   caveats do
35     requires_rosetta
36   end
37 end