cask "piezo" do sha256 :no_check on_ventura :or_older do version "1.8.2" url "https://cdn.rogueamoeba.com/piezo/download/Piezo-ACE.zip" # The ACE release supports macOS 11 to 14.3.1, so we use the highest # supported macOS version in the URL. livecheck do url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=1431&bundleid=com.rogueamoeba.Piezo&platform=osx&version=#{version.no_dots}8000" strategy :sparkle end end on_sonoma :or_newer do version "1.9.5" url "https://cdn.rogueamoeba.com/piezo/download/Piezo.zip" livecheck do url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=999&bundleid=com.rogueamoeba.Piezo&platform=osx&version=#{version.no_dots}8000" strategy :sparkle end # NOTE: See https://www.rogueamoeba.com/support/knowledgebase/?showCategory=Piezo caveats "Piezo #{version} requires macOS 14.4 or higher." end name "Piezo" desc "Audio recording application" homepage "https://rogueamoeba.com/piezo/" no_autobump! because: :requires_manual_review auto_updates true depends_on macos: ">= :big_sur" app "Piezo.app" uninstall quit: "com.rogueamoeba.Piezo" zap trash: [ "~/Library/Caches/com.rogueamoeba.Piezo", "~/Library/HTTPStorages/com.rogueamoeba.Piezo", "~/Library/Preferences/com.rogueamoeba.Piezo.plist", "~/Library/WebKit/com.rogueamoeba.Piezo", ] end