cask "linear-linear" do arch arm: "arm64", intel: "x64" version "1.27.4,2411070utbesidf" sha256 arm: "956f708dcaf51520616c71592ee9638dd648116dd3b26b493bf576ddf53138ab", intel: "8817f8b26eb363f2f3b7cdef10712a968d3b235f7f0bce90112695b9ee3270c1" url "https://download.todesktop.com/200315glz2793v6/Linear%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip", verified: "download.todesktop.com/200315glz2793v6/" name "Linear" desc "App to manage software development and track bugs" homepage "https://linear.app/" livecheck do url "https://download.todesktop.com/200315glz2793v6/latest-mac.yml" regex(/Linear\sv?(\d+(?:\.\d+)+)(?:\s-\sBuild\s([a-z\d]+?))?-#{arch}-mac\.zip/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 depends_on macos: ">= :high_sierra" app "Linear.app" zap trash: [ "~/Library/Application Support/Linear", "~/Library/Caches/com.linear", "~/Library/Caches/com.linear.ShipIt", "~/Library/Preferences/com.linear.plist", "~/Library/Saved Application State/com.linear.savedState", ] end