Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mmhmm-studio.rb
blob8afb92496266383930db6ff2d8b36201d9b8accd
1 cask "mmhmm-studio" do
2   on_monterey :or_older do
3     version "2.5.2,1687464000"
4     sha256 "49ddb6c2b02050386f7786a619a5d2e87eea130f5b68fcd03ebb2ac4dfb8986f"
6     livecheck do
7       skip "Legacy version"
8     end
9   end
10   on_ventura :or_newer do
11     version "2.6.4,1726550000"
12     sha256 "960737943bfbde565926f8b336b78843ce52a07f948805ad48701eb8e1e68bab"
14     # This appcast sometimes uses a newer pubDate for an older version, so we
15     # have to ignore the default `Sparkle` strategy sorting (which involves the
16     # pubDate) and simply work with the version numbers.
17     livecheck do
18       url "https://updates.mmhmm.app/mac/production/sparkle.xml"
19       strategy :sparkle do |items|
20         items.map(&:nice_version)
21       end
22     end
23   end
25   url "https://updates.mmhmm.app/mac/production/mmhmmStudio_#{version.csv.first}.zip"
26   name "mmhmm Studio"
27   desc "Virtual video presentation software"
28   homepage "https://www.mmhmm.app/product"
30   auto_updates true
31   depends_on macos: ">= :big_sur"
33   app "mmhmm Studio.app"
35   uninstall launchctl: "app.mmhmm.Camera.Assistant",
36             quit:      "app.mmhmm.app",
37             pkgutil:   "app.mmhmm.app",
38             delete:    [
39               "/Library/Audio/Plug-Ins/HAL/mmhmmAudio.driver",
40               "/Library/CoreMediaIO/Plug-Ins/DAL/mmhmmCamera.plugin",
41             ]
43   zap trash: [
44     "~/Library/Preferences/app.mmhmm.app.plist",
45     "~/Library/Saved Application State/app.mmhmm.app.savedState",
46   ]
47 end