cask "smartgit" do arch arm: "arm64", intel: "x86_64" version "26.1.056" sha256 arm: "02bbef14d3674706503b0f30e6b6635c068bc4483fa2bcecb0a6c17780fa365b", intel: "f96e40c14206be79e74de47c3ba418e1760e87784abc8989da5dab12cfcc9561" url "https://download.smartgit.dev/smartgit/smartgit-#{version.dots_to_underscores}-macos-#{arch}.dmg" name "SmartGit" desc "Git client" homepage "https://www.smartgit.dev/" livecheck do url "https://www.smartgit.dev/download/" regex(/href=.*?smartgit[._-]v?(\d+(?:[._]\d+)+)(?:[._-]macos)?[._-]#{arch}\.dmg/i) strategy :page_match do |page, regex| page.scan(regex).map { |match| match[0].tr("_", ".") } end end depends_on :macos app "SmartGit.app" binary "#{appdir}/SmartGit.app/Contents/MacOS/SmartGit" zap trash: [ "~/Library/Preferences/com.syntevo.smartgit.plist", "~/Library/Preferences/SmartGit", "~/Library/Saved Application State/com.syntevo.smartgit.savedState", ] end