2015-12-18 09:15:28 +08:00
|
|
|
cask 'karabiner' do
|
2016-07-06 08:27:37 +08:00
|
|
|
version '10.21.0'
|
|
|
|
sha256 '4b4815e139ef2579144b66f33f20a6ab57c6bf76b06f217cd23b5d2482261636'
|
2014-07-10 21:30:40 +08:00
|
|
|
|
2014-07-23 11:19:05 +08:00
|
|
|
url "https://pqrs.org/osx/karabiner/files/Karabiner-#{version}.dmg"
|
2015-01-14 02:44:04 +08:00
|
|
|
appcast 'https://pqrs.org/osx/karabiner/files/appcast.xml',
|
2016-07-06 08:27:37 +08:00
|
|
|
checkpoint: '291a5570aeda093e72ab0948ae70790a964887fcf03b156402ff0daf3768f58f'
|
2014-12-11 00:34:45 +08:00
|
|
|
name 'Karabiner'
|
2014-07-10 21:30:40 +08:00
|
|
|
homepage 'https://pqrs.org/osx/karabiner/'
|
2014-12-11 07:56:39 +08:00
|
|
|
license :public_domain
|
2014-07-10 21:30:40 +08:00
|
|
|
|
2016-02-10 07:55:44 +08:00
|
|
|
auto_updates true
|
|
|
|
|
2015-08-12 21:23:13 +08:00
|
|
|
pkg 'Karabiner.sparkle_guided.pkg'
|
2016-08-27 09:05:26 +08:00
|
|
|
binary '/Applications/Karabiner.app/Contents/Library/bin/karabiner'
|
2014-10-11 22:29:52 +08:00
|
|
|
|
2016-08-27 09:05:26 +08:00
|
|
|
uninstall early_script: '/Library/Application Support/org.pqrs/Karabiner/uninstall.sh',
|
|
|
|
script: {
|
|
|
|
executable: '/usr/bin/killall',
|
|
|
|
args: ['Karabiner'],
|
|
|
|
must_succeed: false,
|
|
|
|
sudo: false,
|
|
|
|
}
|
2016-01-04 03:18:43 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: [
|
|
|
|
'~/Library/Application Support/Karabiner',
|
|
|
|
'~/Library/Application Support/KeyRemap4MacBook',
|
|
|
|
'~/Library/Caches/org.pqrs.KeyRemap4MacBook',
|
|
|
|
'~/Library/Preferences/org.pqrs.Karabiner-AXNotifier.plist',
|
|
|
|
'~/Library/Preferences/org.pqrs.Karabiner.multitouchextension.plist',
|
|
|
|
'~/Library/Preferences/org.pqrs.Karabiner.plist',
|
|
|
|
'~/Library/Preferences/org.pqrs.Karabiner.EventViewer.plist',
|
|
|
|
'~/Library/Caches/org.pqrs.Karabiner',
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.pqrs.karabine.sfl',
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.pqrs.karabine.eventviewer.sfl',
|
|
|
|
]
|
2014-07-10 13:28:06 +08:00
|
|
|
end
|