homebrew-cask/Casks/s/sound-control.rb

44 lines
1.6 KiB
Ruby

cask "sound-control" do
version "2.7.6,5156"
sha256 "5ab4fac4d6b31e4c32a8a0ccaa19d093f08a81f628f22b5a23f41d063ad6374d"
url "https://staticz.com/download/#{version.csv.second}/"
name "Sound Control"
desc "Per-app audio controls"
homepage "https://staticz.com/soundcontrol/"
livecheck do
url "http://staticz.net/updates/soundcontrol.rss"
strategy :sparkle do |item|
"#{item.version},#{item.url[%r{/download/(\d+)/}i, 1]}"
end
end
auto_updates true
depends_on macos: ">= :catalina"
app "Sound Control.app"
uninstall launchctl: [
"com.static.soundsiphon.inputagent",
"com.staticz.audio.soundsiphon.playeragent",
"com.staticz.soundsiphon.bridgedaemon",
],
quit: "com.staticz.SoundControl"
zap trash: [
"/Library/Audio/Plug-Ins/HAL/_SoundSiphon.driver",
"/Library/LaunchAgents/com.staticz.soundsiphon.inputagent.plist",
"/Library/LaunchAgents/com.staticz.soundsiphon.playeragent.plist",
"/Library/LaunchDaemons/com.staticz.soundsiphon.bridgedaemon.plist",
"/Library/Preferences/Audio/Data/_SoundSiphon.driver",
"~/Library/Application Support/com.staticz.SoundControl",
"~/Library/Caches/com.staticz.SoundControl",
"~/Library/Cookies/com.staticz.SoundControl.binarycookies",
"~/Library/Cookies/com.staticz.SoundControl.binarycookies*",
"~/Library/HTTPStorages/com.staticz.SoundControl.binarycookies",
"~/Library/Preferences/com.staticz.SoundControl.plist",
"~/Library/Preferences/com.staticz.soundsiphon.playeragent.plist",
]
end