cask "odrive" do version "7710" sha256 "5538b56513455144e5a56cc8a9238ea76c74385e2f2f5b0cbffed0210cac50a2" url "https://d3huse1s6vwzq6.cloudfront.net/odrivesync.#{version}.pkg" name "odrive" desc "Tool to make any cloud storage unified, synchronised, shareable, and encrypted" homepage "https://www.odrive.com/" livecheck do url "https://www.odrive.com/downloaddesktop?platform=mac" strategy :header_match end depends_on :macos pkg "odrivesync.#{version}.pkg" # Should also remove ~/.odrive/bin/ on uninstall, but causes # faulty reinstall unless ~/.odrive is removed entirely. uninstall quit: [ "com.oxygen.odriveapp", "com.oxygencloud.odrive", ], pkgutil: "com.oxygen.odrive.*" zap trash: "~/.odrive" end