cask "gpgfrontend" do version "2.1.5" on_monterey :or_older do sha256 "731acf48fea4fed6fc4a0065b8e50655e8cff911c62e31f1fc5f4b8c2b478db2" url "https://github.com/saturneric/GpgFrontend/releases/download/v#{version}/GpgFrontend-#{version}-macos-12.dmg", verified: "github.com/saturneric/GpgFrontend/" caveats do requires_rosetta end end on_ventura do sha256 "6e379ef623440576a75fa7d3f67c8db63d15696679a1a6f87e60d179c7f44c55" url "https://github.com/saturneric/GpgFrontend/releases/download/v#{version}/GpgFrontend-#{version}-macos-13.dmg", verified: "github.com/saturneric/GpgFrontend/" caveats do requires_rosetta end end on_sonoma :or_newer do sha256 "91025f2811184d6224ea1fd1aa13a0848ecf10330d73d11e353102b58366356e" url "https://github.com/saturneric/GpgFrontend/releases/download/v#{version}/GpgFrontend-#{version}-macos-14.dmg", verified: "github.com/saturneric/GpgFrontend/" end name "GpgFrontend" desc "OpenPGP/GnuPG crypto, sign and key management tool" homepage "https://gpgfrontend.bktus.com/" depends_on macos: ">= :monterey" depends_on formula: "gnupg" app "GpgFrontend.app" zap trash: [ "~/Library/Application Scripts/pub.gpgfrontend.gpgfrontend", "~/Library/Application Support/GpgFrontend", "~/Library/Containers/pub.gpgfrontend.gpgfrontend", "~/Library/Preferences/GpgFrontend", "~/Library/Preferences/GpgFrontend.plist", "~/Library/Preferences/pub.gpgfrontend.gpgfrontend.plist", "~/Library/Saved Application State/pub.gpgfrontend.gpgfrontend.savedState", ] end