cask "soundsource@test" do version "5.8.4,4,20250701,1345,5847004" sha256 "b906a452910b1a000003c51fe1f5924879ab7f3fcf425b1ecc531a95814862d8" url "https://download.rogueamoeba.com/builds/SoundSource/SoundSource_#{version.csv.fifth}_#{version.csv.third}_#{version.csv.fourth}.zip" name "SoundSource" desc "Sound and audio controller" homepage "https://rogueamoeba.com/soundsource/" # The livecheck uses a hard-coded system version number in the url that corresponds to the latest macOS version livecheck do url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=150&wantsTestReleases=true&bundleid=com.rogueamoeba.soundsource&platform=osx&version=#{version.csv.fifth}" regex(/SoundSource[._-]v?(\h+)[._-](\d+)[._-](\d+)\.zip/i) strategy :sparkle do |item, regex| match = item.url&.match(regex) next if match.blank? "#{item.version.sub("fc", ",")},#{match[2]},#{match[3]},#{match[1]}" end end auto_updates true conflicts_with cask: "soundsource" depends_on macos: ">= :sonoma" app "SoundSource.app" uninstall quit: "com.rogueamoeba.soundsource" zap trash: [ "~/Library/Application Support/SoundSource", "~/Library/Caches/com.rogueamoeba.soundsource", "~/Library/HTTPStorages/com.rogueamoeba.soundsource", "~/Library/Preferences/com.rogueamoeba.soundsource.plist", "~/Library/WebKit/com.rogueamoeba.soundsource", ] end