excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / audio-hijack.rb
blobbbeba565432f6cae70ad8253102b5eeb73bfffcd
1 cask "audio-hijack" do
2   sha256 :no_check
4   on_ventura :or_older do
5     version "4.3.3"
7     url "https://cdn.rogueamoeba.com/audiohijack/download/AudioHijack-ACE.zip"
9     depends_on macos: ">= :big_sur"
10   end
11   on_sonoma :or_newer do
12     version "4.4.4"
14     url "https://cdn.rogueamoeba.com/audiohijack/download/AudioHijack.zip"
16     depends_on macos: ">= :sonoma"
18     # NOTE: See https://www.rogueamoeba.com/support/knowledgebase/?showCategory=Audio+Hijack
19     caveats "Audio Hijack #{version} requires macOS 14.5 or higher."
20   end
22   name "Audio Hijack"
23   desc "Records audio from any application"
24   homepage "https://rogueamoeba.com/audiohijack/"
26   livecheck do
27     url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=#{MacOS.full_version.to_s.delete(".")}&bundleid=com.rogueamoeba.audiohijack&platform=osx&version=#{version.no_dots}8000"
28     strategy :sparkle
29   end
31   auto_updates true
33   app "Audio Hijack.app"
35   uninstall quit: "com.rogueamoeba.audiohijack"
37   zap trash: [
38     "~/Library/Application Support/Audio Hijack #{version.major}",
39     "~/Library/Caches/com.rogueamoeba.audiohijack/",
40     "~/Library/HTTPStorages/com.rogueamoeba.audiohijack/",
41     "~/Library/Preferences/com.rogueamoeba.audiohijack.plist",
42     "~/Library/WebKit/com.rogueamoeba.audiohijack/",
43   ]
44 end