From 55efe9191d68063b9b37a62788bd20b96d14e4c1 Mon Sep 17 00:00:00 2001 From: Gavin Chappell Date: Mon, 10 Dec 2018 12:03:13 +0000 Subject: [PATCH] Update SpiderOakONE (#54658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update SpiderOakONE * Correctly set the minimum supported version to Mavericks * Correctly format the url conditionals such that High Sierra is the only version with a different URL. Both older and newer macOS versions use the same URL * Send a SIGTERM before uninstalling with ‘pkgutil:’ * add support for ‘brew cask zap’ in case the Cask needs to be permanently removed, or the user wants to reinstall as a brand new device * Update spideroakone.rb * Revert "Update spideroakone.rb" This reverts commit d755ac1b3787ed5ae0824ca7edb6f2079ab9bc87. * Update spideroakone.rb --- Casks/spideroakone.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Casks/spideroakone.rb b/Casks/spideroakone.rb index 731ee0ab431..574338c9c35 100644 --- a/Casks/spideroakone.rb +++ b/Casks/spideroakone.rb @@ -4,15 +4,22 @@ cask 'spideroakone' do if MacOS.version <= :sierra url 'https://spideroak.com/release/spideroak/osx' - else + elsif MacOS.version <= :high_sierra url 'https://spideroak.com/release/spideroak/osx_hs' + else + url 'https://spideroak.com/release/spideroak/osx' end name 'SpiderOakOne' homepage 'https://spideroak.com/' - depends_on macos: '>= :mountain_lion' + depends_on macos: '>= :mavericks' pkg 'SpiderOakONE.pkg' - uninstall pkgutil: 'org.python.python' + uninstall signal: [ + ['TERM', 'com.spideroak.orange.client'], + ], + pkgutil: 'org.python.python' + + zap trash: '~/Library/Application Support/SpiderOakONE' end