2015-12-18 09:15:28 +08:00
|
|
|
cask 'amethyst' do
|
2016-11-29 04:18:30 +08:00
|
|
|
if MacOS.version <= :mavericks
|
2016-05-27 10:56:58 +08:00
|
|
|
version '0.9.10'
|
|
|
|
sha256 '82adf42ce6031ab59a3072e607788e73f594ad5f21c7118aabc6c5dafe3d0b47'
|
2018-03-21 20:06:50 +08:00
|
|
|
url "https://ianyh.com/amethyst/versions/Amethyst-#{version}.zip"
|
2016-11-29 04:18:30 +08:00
|
|
|
elsif MacOS.version <= :el_capitan
|
2016-05-27 10:56:58 +08:00
|
|
|
version '0.10.1'
|
|
|
|
sha256 '9fd1ac2cfb8159b2945a4482046ee6d365353df617f4edbabc4e8cadc448c1e7'
|
2018-03-21 20:06:50 +08:00
|
|
|
url "https://ianyh.com/amethyst/versions/Amethyst-#{version}.zip"
|
2016-11-29 04:18:30 +08:00
|
|
|
else
|
2018-03-21 20:06:50 +08:00
|
|
|
version '0.12.0'
|
|
|
|
sha256 '7425304f643b67b88b7e851595cdd89bbc58bb7361f7c2dc35239d2ee5569af4'
|
|
|
|
# github.com/ianyh/Amethyst was verified as official when first introduced to the cask
|
|
|
|
url "https://github.com/ianyh/Amethyst/releases/download/v#{version}/Amethyst-#{version}.zip"
|
2016-05-27 10:56:58 +08:00
|
|
|
end
|
2014-07-01 02:28:06 +08:00
|
|
|
|
2018-06-12 22:37:26 +08:00
|
|
|
appcast 'https://ianyh.com/amethyst/appcast.xml'
|
2016-01-04 03:17:45 +08:00
|
|
|
name 'Amethyst'
|
2016-11-21 12:36:10 +08:00
|
|
|
homepage 'https://ianyh.com/amethyst/'
|
2014-06-27 08:00:56 +08:00
|
|
|
|
2016-01-04 06:44:01 +08:00
|
|
|
accessibility_access true
|
|
|
|
|
2014-09-16 00:05:14 +08:00
|
|
|
app 'Amethyst.app'
|
2016-01-04 06:44:01 +08:00
|
|
|
|
2017-11-13 14:06:48 +08:00
|
|
|
uninstall login_item: 'Amethyst'
|
2016-01-04 06:44:01 +08:00
|
|
|
|
2017-11-18 17:35:03 +08:00
|
|
|
zap trash: [
|
|
|
|
'~/Library/Caches/com.amethyst.Amethyst',
|
|
|
|
'~/Library/Preferences/com.amethyst.Amethyst.plist',
|
|
|
|
'~/Library/Cookies/com.amethyst.Amethyst.binarycookies',
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.amethyst.amethyst.sfl*',
|
|
|
|
]
|
2013-08-19 21:59:17 +08:00
|
|
|
end
|