homebrew-cask/Casks/atom.rb

29 lines
876 B
Ruby
Raw Normal View History

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
url 'https://atom.io/download/mac'
2015-01-04 11:19:42 +08:00
name 'Atom'
homepage 'https://atom.io/'
license :mit
2014-09-16 00:05:16 +08:00
app 'Atom.app'
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
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