homebrew-cask/Casks/o/odrive.rb

25 lines
761 B
Ruby

cask "odrive" do
version "7367"
sha256 "35cb29a7d3aed1b31da1eb35bc15758462cd882a41dbe6e25c4c5b51d2e5bec0"
url "https://d3huse1s6vwzq6.cloudfront.net/odrivesync.#{version}.pkg",
verified: "d3huse1s6vwzq6.cloudfront.net/"
name "odrive"
desc "Tool to make any cloud storage unified, synchronized, shareable, and encrypted"
homepage "https://www.odrive.com/"
livecheck do
url "https://www.odrive.com/downloaddesktop?platform=mac"
strategy :header_match
end
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",
pkgutil: "com.oxygen.odrive.*"
zap trash: "~/.odrive"
end