2014-11-14 01:25:24 +08:00
|
|
|
cask :v1 => 'atom' do
|
2015-07-11 01:42:46 +08:00
|
|
|
version '1.0.2'
|
|
|
|
sha256 '2817c3f77de2bce76660832ace6820c7476ea5a451cb1de196bf396f96014f0e'
|
2014-06-27 08:00:58 +08:00
|
|
|
|
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'
|
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
|
|
|
|
2015-07-11 01:42:46 +08:00
|
|
|
depends_on :macos => '>= :mountain_lion'
|
|
|
|
|
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
|