cask "fork-dev" do version "2.20.2" sha256 "61169ad13228cf360af0632f88de2d5615e5413e16071b003e30e91566c95590" url "https://cdn.fork.dev/mac/Fork-#{version}.dmg" name "Fork" desc "GIT client" homepage "https://fork.dev/" livecheck do url "https://git-fork.com/update/feed.xml" regex(%r{/Fork-(\d+(?:\.\d+)+)\.dmg}i) strategy :sparkle do |item, regex| item.url[regex, 1] end end auto_updates true conflicts_with cask: "fork" app "Fork.app" binary "#{appdir}/Fork.app/Contents/Resources/fork_cli", target: "fork" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.danpristupov.fork.sfl2", "~/Library/Application Support/com.DanPristupov.Fork", "~/Library/Application Support/Fork", "~/Library/Caches/com.DanPristupov.Fork", "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.DanPristupov.Fork", "~/Library/Cookies/com.DanPristupov.Fork.binarycookies", "~/Library/HTTPStorages/com.DanPristupov.Fork.binarycookies", "~/Library/HTTPStorages/com.DanPristupov.Fork", "~/Library/Logs/Fork.log", "~/Library/Preferences/com.DanPristupov.Fork.plist", "~/Library/Saved Application State/com.DanPristupov.Fork.savedState", "~/Library/WebKit/com.DanPristupov.Fork", ] end