cask "geneious-prime" do version "2026.1.4" sha256 "1e5522fa8b54251b14c35f655037cde39040e074aa075f0e12052cf0e1107b18" url "https://assets.geneious.com/installers/geneious/release/Geneious_Prime_mac64_#{version.dots_to_underscores}_with_jre.dmg" name "Geneious Prime" desc "Bioinformatics software platform" homepage "https://www.geneious.com/" livecheck do url "https://www.geneious.com/updates" regex(/href=.*?Geneious[._-]Prime[._-]mac64[._-]v?(\d+(?:[._]\d+)+).*?\.dmg/i) strategy :page_match do |page, regex| page.scan(regex)&.map { |match| match[0].tr("_", ".") } end end depends_on :macos app "Geneious Prime.app" zap trash: [ "~/Geneious #{version.major}.0 Data", "~/Library/Application Support/Geneious", "~/Library/Preferences/com.biomatters.*.plist", "~/Library/Preferences/Geneious.in.use.vmoptions", "~/Library/Saved Application State/com.biomatters.Geneious.savedState", ] end