cask "tandem" do arch arm: "arm64", intel: "x64" version "2.2.1622,241113552emajbu" sha256 arm: "8cec58bf7bfd35ecbba8f13e3159c74786fd24e76df4bc722a420a41e766a8f8", intel: "d36e6dd545180014f96cec8dfcaabca77e005be87bfff24fa6af99dea2c77afb" url "https://download.todesktop.com/200527auaqaacsy/Tandem%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}.dmg", verified: "download.todesktop.com/200527auaqaacsy/" name "Tandem" desc "Virtual office for remote teams" homepage "https://tandem.chat/" livecheck do url "https://download.todesktop.com/200527auaqaacsy/latest-mac.yml" regex(/Tandem\sv?(\d+(?:\.\d+)+)(?:\s-\sBuild\s([a-z\d]+?))?-#{arch}\.dmg/i) strategy :electron_builder do |yaml, regex| yaml["files"]&.map do |item| match = item["url"]&.match(regex) next if match.blank? match[2].present? ? "#{match[1]},#{match[2]}" : match[1] end end end auto_updates true app "Tandem.app" zap trash: [ "~/Library/Application Support/Caches/tandem-updater", "~/Library/Application Support/Tandem", "~/Library/Caches/tandem.app", "~/Library/Caches/tandem.app.ShipIt", "~/Library/Logs/Tandem", "~/Library/Preferences/ByHost/tandem.app.ShipIt.*.plist", "~/Library/Preferences/tandem.app.plist", "~/Library/Saved Application State/tandem.app.savedState", ] end