cask "onlyoffice" do arch arm: "arm", intel: "x86_64" version "8.2.1" sha256 arm: "aa61c811f3f2f136b82f208c2e4292ab658b98242b7f528b2f8a7df8a820b177", intel: "cd3c642d1f165cb78ba3d458524638a0996fbd7e433d317b75c42cf0c00ab4f2" url "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v#{version}/ONLYOFFICE-#{arch}.dmg", verified: "github.com/ONLYOFFICE/DesktopEditors/" name "ONLYOFFICE" desc "Document editor" homepage "https://www.onlyoffice.com/" livecheck do url :url regex(/(\d+(?:\.\d+)+)/i) strategy :github_latest end auto_updates true depends_on macos: ">= :sierra" app "ONLYOFFICE.app" zap trash: [ "~/Library/Application Support/asc.onlyoffice.ONLYOFFICE", "~/Library/Preferences/asc.onlyoffice.editors-helper-renderer.plist", "~/Library/Preferences/asc.onlyoffice.ONLYOFFICE.plist", ] end