homebrew-cask/Casks/atom.rb

29 lines
876 B
Ruby

cask :v1 => 'atom' do
version :latest
sha256 :no_check
url 'https://atom.io/download/mac'
name 'Atom'
homepage 'https://atom.io/'
license :mit
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'
postflight do
suppress_move_to_applications
end
zap :delete => [
'~/.atom',
'~/Library/Application Support/ShipIt_stderr.log',
'~/Library/Application Support/Atom',
'~/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/'
end