cask "onionshare" do version "2.6.2" sha256 "9588e045b794f15c23f57f584942fb6692d84ab07f2bbcdbb38a65b39befebd5" url "https://onionshare.org/dist/#{version}/OnionShare-#{version}.dmg" name "OnionShare" desc "Securely and anonymously share files, host websites, and chat with friends" homepage "https://onionshare.org/" livecheck do url :homepage regex(/href=.*?OnionShare[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end app "OnionShare.app" zap trash: [ "~/Library/Application Support/OnionShare", "~/Library/Preferences/org.onionshare.onionshare.plist", "~/Library/Saved Application State/org.onionshare.onionshare.savedState", ] end