cask "gitbutler" do arch arm: "aarch64", intel: "x86_64" version "0.22.3,3234" sha256 arm: "edf0f680c102ff86faee1d919ea2a6166fcbe6e3a98986706c91a38eed662f74", intel: "9b22060fb0dd11a4d9e41ee3d93c67b0c24986b824055fb9107368075c5c4b37" 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 app "GitButler.app" binary "#{appdir}/GitButler.app/Contents/MacOS/gitbutler-tauri", target: "but" 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