cask "sejda-pdf" do version "7.7.5" sha256 "9f907fbdb7ff51cd2c163580cdd822a0bebfb3fdb5227f0eb30f35d8cec906a7" url "https://downloads.sejda-cdn.com/sejda-desktop_#{version}.dmg", verified: "downloads.sejda-cdn.com/" name "Sejda PDF Desktop" desc "PDF editor" homepage "https://www.sejda.com/en/desktop" livecheck do url :homepage regex(/mac\s*:\s*["']sejda[._-]desktop[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end depends_on macos: ">= :high_sierra" app "Sejda PDF Desktop.app" zap trash: [ "~/.sejda", "~/.sejda-desktop", "~/Library/Application Support/Sejda PDF Desktop", "~/Library/Preferences/com.sejda.sejda-desktop.plist", "~/Library/Saved Application State/com.sejda.sejda-desktop.savedState", ] caveats do requires_rosetta end end