excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / n / neteasemusic.rb
blobe14164f240ab156f128eea7c44803067633fd798
1 cask "neteasemusic" do
2   version "2.3.21_1077"
3   sha256 "ec75e32da23e59a3dde1fcc97a57da87c76bbbb72d4ca36396b554318d2d02eb"
5   url "https://d1.music.126.net/dmusic/NeteaseMusic_#{version}_web.dmg",
6       verified:   "d1.music.126.net/",
7       user_agent: :fake
8   name "NetEase cloud music"
9   name "网易云音乐"
10   desc "Music streaming platform"
11   homepage "https://music.163.com/"
13   # The Sparkle feed uses non-English pubDates, which are not parsed correctly
14   # by the `:sparkle` strategy. As a workaround, the version is just extracted
15   # from the XML using a regex pattern on the download URLs.
16   livecheck do
17     url "https://music.163.com/api/osx/download/latest"
18     regex(/NeteaseMusic[._-]v?(\d+(?:[._]\d+)+)_web/i)
19     strategy :header_match
20   end
22   auto_updates true
23   depends_on macos: ">= :sierra"
25   app "NeteaseMusic.app"
27   uninstall quit: "com.netease.163music"
29   zap trash: [
30     "~/Library/Application Support/com.netease.163music",
31     "~/Library/Caches/com.netease.163music",
32     "~/Library/Containers/com.netease.163music",
33     "~/Library/Cookies/com.netease.163music.binarycookies",
34     "~/Library/Preferences/com.netease.163music.plist",
35     "~/Library/Saved Application State/com.netease.163music.savedState",
36   ]
37 end