cask "pgadmin4" do arch arm: "arm64", intel: "x86_64" version "8.13" sha256 arm: "411fa8c413d1ed4a79f08d39ad832ad32453ccb792ce33333c5c72f459ce50ab", intel: "70c7ab01ee7c54ede70bd69ef7bfd1f57717bc383aa737a82f75d236e4ad4974" url "https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v#{version}/macos/pgadmin4-#{version}-#{arch}.dmg", verified: "ftp.postgresql.org/pub/pgadmin/pgadmin4/" name "pgAdmin4" desc "Administration and development platform for PostgreSQL" homepage "https://www.pgadmin.org/" livecheck do url "https://ftp.postgresql.org/pub/pgadmin/pgadmin4/" regex(/href="v?(\d+(?:\.\d+)+)/i) end app "pgAdmin 4.app" zap trash: [ "~/.pgadmin", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.pgadmin.pgadmin4.sfl*", "~/Library/Preferences/org.pgadmin.pgadmin4.plist", "~/Library/Saved Application State/org.pgadmin.pgAdmin4.savedState", ] end