cask "gitbutler" do arch arm: "aarch64", intel: "x86_64" version "0.15.1,2163" sha256 arm: "a33476b8be7d7f3536f130100162156db792fe29dffeea74c236d8a020e8e9dc", intel: "5d7d905e8eab2ce144163fb197c9e2965b07d4e264e4de923ee58d7806fc0500" url "https://releases.gitbutler.com/releases/release/#{version.csv.first}-#{version.csv.second}/macos/#{arch}/GitButler.app.tar.gz" name "GitButler" desc "Git client for simultaneous branches on top of your existing workflow" homepage "https://gitbutler.com/" livecheck do url "https://app.gitbutler.com/releases/release/darwin-#{arch}/0.0.0" regex(%r{/release/v?(\d+(?:\.\d+)+)[._-](\d+)/macos}i) strategy :json do |json, regex| match = json["url"]&.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end auto_updates true depends_on macos: ">= :high_sierra" app "GitButler.app" zap trash: [ "~/Library/Application Support/com.gitbutler.app", "~/Library/Caches/com.gitbutler.app", "~/Library/Logs/com.gitbutler.app", "~/Library/Preferences/com.gitbutler.app.plist", "~/Library/Saved Application State/com.gitbutler.app.savedState", "~/Library/WebKit/com.gitbutler.app", ] end