homebrew-cask/Casks/atom.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

2014-11-14 01:25:24 +08:00
cask :v1 => 'atom' do
2015-09-03 14:03:05 +08:00
version '1.0.11'
sha256 '0a173f06626c22f2cbb9a9cbba0f15a4e7cb34fed2261fc16792b3cc0548dd52'
2015-07-11 01:42:46 +08:00
# github.com is the official download host per the vendor homepage
url "https://github.com/atom/atom/releases/download/v#{version}/atom-mac.zip"
2015-07-11 02:05:28 +08:00
appcast 'https://github.com/atom/atom/releases.atom'
2015-01-04 11:19:42 +08:00
name 'Atom'
homepage 'https://atom.io/'
license :mit
2015-07-11 02:05:47 +08:00
tags :vendor => 'Github'
2015-07-11 01:42:46 +08:00
depends_on :macos => '>= :mountain_lion'
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