cask "oscilloscope" do
  version "1.1.0"
  sha256 "5fe6fd174777d28b729704b94d034b5c1ba450b65b841a72928b15412a7c32fb"

  url "https://github.com/kritzikratzi/Oscilloscope/releases/download/#{version}/oscilloscope-#{version}-osx.zip"
  name "Oscilloscope"
  desc "Mimic the aesthetic of ray-oscilloscopes"
  homepage "https://github.com/kritzikratzi/Oscilloscope"

  livecheck do
    url :url
    strategy :github_latest
  end

  depends_on :macos

  app "Oscilloscope.app"

  zap trash: [
    "~/Library/Application Scripts/org.sd.oscilloscope",
    "~/Library/Containers/org.sd.oscilloscope",
  ]

  caveats do
    requires_rosetta
  end
end
