excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / awa.rb
blob33eacc8cf952a4b3aaa409e98a6d650432452c03
1 cask "awa" do
2   version "1.5.7"
3   sha256 "2d1bba828ca64afb19511b6d770414e06659af97a85ca05dbc7cde36d1b79e01"
5   url "https://download-d.awa.io/mac/stable/AWASetup-v#{version}.dmg",
6       verified: "download-d.awa.io/mac/stable/"
7   name "AWA"
8   desc "Music streaming service"
9   homepage "https://awa.fm/"
11   livecheck do
12     url "https://contents.awa.io/pc_update.json"
13     strategy :json do |json|
14       json["version"]&.split("-")&.first
15     end
16   end
18   auto_updates true
20   app "AWA.app"
22   uninstall launchctl: "fm.awa.liverpool",
23             quit:      "fm.awa.liverpool"
25   zap trash: [
26     "~/Library/Application Support/AWA",
27     "~/Library/Preferences/fm.awa.liverpool.helper.plist",
28     "~/Library/Preferences/fm.awa.liverpool.plist",
29     "~/Library/Saved Application State/fm.awa.liverpool.savedState",
30   ]
32   caveats do
33     requires_rosetta
34   end
35 end