Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / s / sound-control.rb
blobb3270dc332c99a9a34e56a03f080509964808305
1 cask "sound-control" do
2   version "3.2.0"
3   sha256 "4e8e2d00efc0f7a57826a96ba2cb20260e47d5304f68df3ef712a075d56b8d89"
5   url "https://s3.amazonaws.com/staticz.net/downloads/soundcontrol/SoundControl_#{version}.dmg",
6       verified: "s3.amazonaws.com/staticz.net/downloads/soundcontrol/"
7   name "Sound Control"
8   desc "Per-app audio controls"
9   homepage "https://staticz.com/soundcontrol/"
11   livecheck do
12     url :homepage
13     regex(/Sound\s+Control\s+v?(\d+(?:\.\d+)+)\s+Release\s+Notes/im)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| match[0] }
16     end
17   end
19   auto_updates true
20   depends_on macos: ">= :big_sur"
22   app "Sound Control.app"
24   uninstall launchctl: [
25               "com.static.soundsiphon.inputagent",
26               "com.staticz.audio.soundsiphon.playeragent",
27               "com.staticz.soundsiphon.bridgedaemon",
28             ],
29             quit:      "com.staticz.SoundControl"
31   zap trash: [
32     "/Library/Audio/Plug-Ins/HAL/_SoundSiphon.driver",
33     "/Library/LaunchAgents/com.staticz.soundsiphon.inputagent.plist",
34     "/Library/LaunchAgents/com.staticz.soundsiphon.playeragent.plist",
35     "/Library/LaunchDaemons/com.staticz.soundsiphon.bridgedaemon.plist",
36     "/Library/Preferences/Audio/Data/_SoundSiphon.driver",
37     "~/Library/Application Support/com.staticz.SoundControl",
38     "~/Library/Caches/com.staticz.SoundControl",
39     "~/Library/Cookies/com.staticz.SoundControl.binarycookies",
40     "~/Library/Cookies/com.staticz.SoundControl.binarycookies*",
41     "~/Library/HTTPStorages/com.staticz.SoundControl.binarycookies",
42     "~/Library/Preferences/com.staticz.SoundControl.plist",
43     "~/Library/Preferences/com.staticz.soundsiphon.playeragent.plist",
44   ]
45 end