From 3eb45c6ccf19405ec9965ff7beae5cfd368e1707 Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 31 Jul 2017 11:32:10 +1000 Subject: [PATCH] Update whatroute - appcast / uninstall (#37233) --- Casks/whatroute.rb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Casks/whatroute.rb b/Casks/whatroute.rb index 2e78902c0b4..6b367836b3f 100644 --- a/Casks/whatroute.rb +++ b/Casks/whatroute.rb @@ -3,6 +3,8 @@ cask 'whatroute' do sha256 '3d78079f4d0bf72de5d02c5c1b8edcb60909ce6ca3053cbb7135a8f89fa968e1' url "https://downloads.whatroute.net/software/whatroute-#{version}.zip" + appcast "https://www.whatroute.net/whatroute#{version.major}appcast.xml", + checkpoint: 'c1e70b8848633c76a64c3ed998d6111482dd131c0c8426fa5ff6e9d5681c3fe6' name 'WhatRoute' homepage 'https://www.whatroute.net/' @@ -10,11 +12,16 @@ cask 'whatroute' do app 'WhatRoute.app' + uninstall delete: "/Library/PrivilegedHelperTools/net.whatroute.whatroute#{version.major}helper", + launchctl: [ + 'net.whatroute.LaunchHelper', + "net.whatroute.whatroute#{version.major}helper", + ], + quit: "net.whatroute.whatroute#{version.major}" + zap delete: [ - '/Library/LaunchDaemons/net.whatroute.whatroute2helper.plist', - '/Library/PrivilegedHelperTools/net.whatroute.whatroute2helper', - '~/Library/Caches/net.whatroute.whatroute2', - '~/Library/Logs/net.whatroute.whatroute2', - '~/Library/Preferences/net.whatroute.whatroute2.plist', - ] + "~/Library/Caches/net.whatroute.whatroute#{version.major}", + "~/Library/Logs/net.whatroute.whatroute#{version.major}", + ], + trash: "~/Library/Preferences/net.whatroute.whatroute#{version.major}.plist" end