cask "seadrive" do version "3.0.11" sha256 "71a6a0961a25279df0b33ad7bccacbcecdcf55c08965fe9bf9171f928c5f1aa7" url "https://download.seadrive.org/seadrive-#{version}.pkg", verified: "download.seadrive.org/" name "Seadrive" desc "Manual for Seafile server" homepage "https://www.seafile.com/en/home/" livecheck do url "https://www.seafile.com/en/download/" regex(%r{href=.*?/seadrive[._-]v?(\d+(?:\.\d+)+)\.pkg}i) end depends_on macos: ">= :monterey" pkg "seadrive-#{version}.pkg" uninstall launchctl: "com.seafile.seadrive.helper", quit: [ "com.seafile.seadrive", "com.seafile.seadrive.fprovider", ], login_item: "SeaDrive", pkgutil: "com.seafile.SeaDrive" zap trash: [ "~/.seadrive", "~/Library/Application Scripts/*.com.seafile.seadrive", "~/Library/Application Scripts/com.seafile.seadrive.findersync", "~/Library/Application Scripts/com.seafile.seadrive.fprovider", "~/Library/Containers/com.seafile.seadrive.findersync", "~/Library/Containers/com.seafile.seadrive.fprovider", "~/Library/Group Containers/*.com.seafile.seadrive", "~/Library/Group Containers/com.seafile.seadrive.findersync", "~/SeaDrive", ] end