Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / s / soundsource.rb
blob11e4f74541fb77138a33cdcee95b983f9f5e65ec
1 cask "soundsource" do
2   sha256 :no_check
4   on_ventura :or_older do
5     version "5.6.4"
7     url "https://cdn.rogueamoeba.com/soundsource/download/SoundSource-ACE.zip"
9     depends_on macos: ">= :big_sur"
10   end
11   on_sonoma :or_newer do
12     version "5.7.5"
14     url "https://cdn.rogueamoeba.com/soundsource/download/SoundSource.zip"
16     depends_on macos: ">= :sonoma"
18     # NOTE: See https://www.rogueamoeba.com/support/knowledgebase/?showCategory=SoundSource
19     caveats "SoundSource #{version} requires macOS 14.5 or higher."
20   end
22   name "SoundSource"
23   desc "Sound and audio controller"
24   homepage "https://rogueamoeba.com/soundsource/"
26   livecheck do
27     url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=#{MacOS.full_version.to_s.delete(".")}&bundleid=com.rogueamoeba.soundsource&platform=osx&version=#{version.no_dots}8000"
28     strategy :sparkle
29   end
31   auto_updates true
32   conflicts_with cask: "soundsource@test"
34   app "SoundSource.app"
36   uninstall quit: "com.rogueamoeba.soundsource"
38   zap trash: [
39     "~/Library/Application Support/SoundSource",
40     "~/Library/Caches/com.rogueamoeba.soundsource",
41     "~/Library/HTTPStorages/com.rogueamoeba.soundsource",
42     "~/Library/Preferences/com.rogueamoeba.soundsource.plist",
43     "~/Library/WebKit/com.rogueamoeba.soundsource",
44   ]
45 end