cask "trojanx" do
  version "0.4"
  sha256 "794e02b6b530ea076b5fcc51061efb597cc4ff0a1d8064897bca16122f6fc798"

  url "https://github.com/JimLee1996/TrojanX/releases/download/#{version}/TrojanX.app.zip"
  name "TrojanX"
  desc "Mechanism to bypass the Great Firewall"
  homepage "https://github.com/JimLee1996/TrojanX"

  depends_on macos: ">= :el_capitan"

  app "TrojanX.app"

  uninstall delete: "/Library/Application Support/TrojanX"

  zap trash: [
    "~/Library/Application Support/TrojanX",
    "~/Library/Preferences/TrojanX.plist",
    "~/.TrojanX",
  ]
end
