2015-12-18 09:15:28 +08:00
|
|
|
cask 'seil' do
|
2016-04-27 00:22:01 +08:00
|
|
|
if MacOS.release <= :mountain_lion
|
|
|
|
version '10.11.0'
|
|
|
|
sha256 '4ee777bf0a7f023abadb1f6a836b08484cfc2db2a19dd0b28d8942a2b638f8e5'
|
|
|
|
elsif MacOS.release <= :yosemite
|
|
|
|
version '11.3.0'
|
|
|
|
sha256 '5fd57db4f96b833c4f1005b3d68711bb9ea52f0db8e98a0793eb2a9ff5d290b2'
|
|
|
|
else
|
|
|
|
version '12.0.0'
|
|
|
|
sha256 'ebfcc6b8a709048cb4aa81fc7a020112f77282934c4b30aedae8448d6534d65d'
|
|
|
|
end
|
2014-06-27 08:01:41 +08:00
|
|
|
|
2015-05-26 21:39:58 +08:00
|
|
|
url "https://pqrs.org/osx/karabiner/files/Seil-#{version}.dmg"
|
2015-07-10 14:19:00 +08:00
|
|
|
appcast 'https://pqrs.org/osx/karabiner/files/seil-appcast.xml',
|
2016-01-18 09:27:20 +08:00
|
|
|
checkpoint: 'b4f7cb8bd2068dc80c6e0c83ac3b446f0050f65f7cd32a250ecbca6c0eec9a9b'
|
2015-04-26 23:49:28 +08:00
|
|
|
name 'Seil'
|
2015-05-26 21:39:58 +08:00
|
|
|
homepage 'https://pqrs.org/osx/karabiner/seil.html'
|
2014-10-13 20:38:21 +08:00
|
|
|
license :public_domain
|
2014-06-27 08:01:41 +08:00
|
|
|
|
2016-04-27 00:22:01 +08:00
|
|
|
depends_on macos: '>= :mountain_lion'
|
2016-01-04 03:19:26 +08:00
|
|
|
|
2016-04-27 00:22:01 +08:00
|
|
|
if MacOS.release <= :mountain_lion
|
|
|
|
pkg 'Seil.pkg'
|
|
|
|
else
|
|
|
|
pkg 'Seil.sparkle_guided.pkg'
|
|
|
|
end
|
2014-10-11 22:32:44 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall quit: 'org.pqrs.Seil',
|
|
|
|
kext: 'org.pqrs.driver.Seil',
|
|
|
|
pkgutil: 'org.pqrs.driver.Seil'
|
2015-08-12 21:23:50 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: [
|
|
|
|
'~/Library/Caches/org.pqrs.PCKeyboardHack',
|
|
|
|
'~/Library/Caches/org.pqrs.Seil',
|
|
|
|
'~/Library/Preferences/org.pqrs.PCKeyboardHack.plist',
|
|
|
|
'~/Library/Preferences/org.pqrs.Seil.plist',
|
|
|
|
]
|
2014-06-20 21:27:05 +08:00
|
|
|
end
|