cask "cryptomator" do arch arm: "-arm64", intel: "-x64" version "1.14.1" sha256 arm: "33663c07fda973a3ff17cb6113b7b28e08e42514506faec5e8fa8bcf24157746", intel: "966e67cb1ad4e9a4d6ad49a36ed147f9d4c070fa48aa1001cd1a981dc06f17ff" url "https://github.com/cryptomator/cryptomator/releases/download/#{version}/Cryptomator-#{version}#{arch}.dmg", verified: "github.com/cryptomator/cryptomator/" name "Cryptomator" desc "Multi-platform client-side cloud file encryption tool" homepage "https://cryptomator.org/" # Not every GitHub release provides a file for macOS, so we check multiple # recent releases instead of only the "latest" release. livecheck do url :url regex(/^Cryptomator[._-]v?(\d+(?:\.\d+)+).*?\.(?:dmg|pkg)$/i) strategy :github_releases do |json, regex| json.map do |release| next if release["draft"] || release["prerelease"] release["assets"]&.map do |asset| match = asset["name"]&.match(regex) next if match.blank? match[1] end end.flatten end end depends_on macos: ">= :high_sierra" app "Cryptomator.app" zap trash: [ "~/Library/Application Support/Cryptomator", "~/Library/Logs/Cryptomator", "~/Library/Preferences/org.cryptomator.plist", ] end