2014-11-14 01:25:24 +08:00
|
|
|
cask :v1 => 'atom' do
|
2014-09-17 19:42:38 +08:00
|
|
|
version :latest
|
2014-05-08 20:51:31 +08:00
|
|
|
sha256 :no_check
|
2014-06-27 08:00:58 +08:00
|
|
|
|
|
|
|
url 'https://atom.io/download/mac'
|
2015-01-04 11:19:42 +08:00
|
|
|
name 'Atom'
|
2015-06-05 20:00:48 +08:00
|
|
|
homepage 'https://atom.io/'
|
2014-10-13 23:56:31 +08:00
|
|
|
license :mit
|
2014-06-27 08:00:58 +08:00
|
|
|
|
2014-09-16 00:05:16 +08:00
|
|
|
app 'Atom.app'
|
2014-04-25 22:31:27 +08:00
|
|
|
binary 'Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm', :target => 'apm'
|
|
|
|
binary 'Atom.app/Contents/Resources/app/atom.sh', :target => 'atom'
|
2014-11-02 07:14:30 +08:00
|
|
|
|
2014-09-09 20:55:26 +08:00
|
|
|
postflight do
|
2014-11-02 07:14:30 +08:00
|
|
|
suppress_move_to_applications
|
2014-04-25 22:31:27 +08:00
|
|
|
end
|
2014-10-11 22:23:44 +08:00
|
|
|
|
2014-09-18 19:57:54 +08:00
|
|
|
zap :delete => [
|
2015-04-23 00:01:45 +08:00
|
|
|
'~/.atom',
|
2014-10-11 22:23:44 +08:00
|
|
|
'~/Library/Application Support/ShipIt_stderr.log',
|
2015-04-23 00:01:45 +08:00
|
|
|
'~/Library/Application Support/Atom',
|
2014-10-11 22:23:44 +08:00
|
|
|
'~/Library/Application Support/ShipIt_stdout.log',
|
|
|
|
'~/Library/Application Support/com.github.atom.ShipIt',
|
|
|
|
'~/Library/Caches/com.github.atom',
|
|
|
|
'~/Library/Preferences/com.github.atom.plist',
|
|
|
|
],
|
|
|
|
:rmdir => '~/.atom/'
|
2014-04-25 20:39:54 +08:00
|
|
|
end
|