cask "packetproxy" do
  version "2.2.0"
  sha256 "b25aa90db773bb8d00871db777d383c6de292ae2dad448102f50702a9c0790fc"

  url "https://github.com/DeNA/PacketProxy/releases/download/#{version}/PacketProxy-#{version}-Installer-Mac-Signed.dmg"
  name "PacketProxy"
  desc "Local proxy written in Java"
  homepage "https://github.com/DeNA/PacketProxy"

  app "PacketProxy.app"

  zap trash: [
    "~/.packetproxy",
    "~/Library/Saved Application State/packetproxy",
  ]
end
