From 8b49b64ccfed6feadcd7b66970a722f4a873e032 Mon Sep 17 00:00:00 2001 From: Rob Decker Date: Fri, 29 Sep 2017 15:13:01 -0700 Subject: [PATCH] Add istat-menus version 5 (#4526) * Add istat-menus version 5 * Fix istat-menus5 cask name * Update istat-menus5.rb --- Casks/istat-menus5.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Casks/istat-menus5.rb diff --git a/Casks/istat-menus5.rb b/Casks/istat-menus5.rb new file mode 100644 index 000000000..ea17243e0 --- /dev/null +++ b/Casks/istat-menus5.rb @@ -0,0 +1,40 @@ +cask 'istat-menus5' do + version '5.32' + sha256 'bfb1cd95d119c4248190dc6093147a2b08a04b27b9e57e90638d720f7b2f24c7' + + # amazonaws.com/bjango was verified as official when first introduced to the cask + url "https://s3.amazonaws.com/bjango/files/istatmenus#{version.major}/istatmenus#{version}.zip" + name 'iStats Menus' + homepage 'https://bjango.com/mac/istatmenus/' + + auto_updates true + + app 'iStat Menus.app' + + uninstall delete: "/Library/Application Support/iStat Menus #{version.major}", + launchctl: [ + 'com.bjango.istatmenusagent', + 'com.bjango.istatmenusdaemon', + 'com.bjango.istatmenusnotifications', + 'com.bjango.istatmenusstatus', + ], + signal: [ + ['TERM', 'com.bjango.iStat-Menus-Notifications'], + ['TERM', 'com.bjango.iStatMenusAgent'], + ['TERM', 'com.bjango.istatmenusstatus'], + ['TERM', 'com.bjango.istatmenus'], + ['HUP', 'com.bjango.istatmenus'], + ] + + zap trash: [ + '~/Library/Application Support/iStat Menus', + '~/Library/Caches/com.bjango.istatmenus', + '~/Library/Caches/com.bjango.istatmenusstatus', + '~/Library/Caches/com.bjango.iStat-Menus-Updater', + '~/Library/Caches/com.bjango.iStatMenusAgent', + '~/Library/Logs/iStat Menus', + '~/Library/Preferences/com.bjango.istatmenus.plist', + "~/Library/Preferences/com.bjango.istatmenus#{version.major}.extras.plist", + '~/Library/Preferences/com.bjango.istatmenusstatus.plist', + ] +end