cask "dropshare" do version "6.15,6261" sha256 "b6d0aa814973669aa8457158cb1ebb1d448f1784531ac01ed387d16ae6323101" url "https://d2wvuuix8c9e48.cloudfront.net/Dropshare#{version.major}-#{version.csv.second}.app.zip" name "Dropshare" desc "File sharing solution" homepage "https://dropshare.app/" livecheck do url "https://dropshare.app/sparkle/Dropshare#{version.major}.xml" regex(/(\d+(?:\.\d+)+)/i) strategy :sparkle do |item, regex| "#{item.title[regex, 1]},#{item.version}" end end auto_updates true depends_on macos: :monterey app "Dropshare #{version.major}.app" binary "#{appdir}/Dropshare #{version.major}.app/Contents/Resources/ds.sh", target: "ds" zap trash: [ "~/Library/Application Support/Dropshare #{version.major}", "~/Library/Caches/net.mkswap.Dropshare#{version.major}", "~/Library/Cookies/net.mkswap.Dropshare#{version.major}.binarycookies", "~/Library/Logs/Dropshare #{version.major}", "~/Library/Preferences/net.mkswap.Dropshare#{version.major}.plist", ] end