33 lines
1.4 KiB
Ruby
33 lines
1.4 KiB
Ruby
cask 'atom' do
|
|
version '1.23.1'
|
|
sha256 '575d7e4311475eae69a4456cd7bd5a038f679e953193c76638dde0602c2b0131'
|
|
|
|
# github.com/atom/atom was verified as official when first introduced to the cask
|
|
url "https://github.com/atom/atom/releases/download/v#{version}/atom-mac.zip"
|
|
appcast 'https://github.com/atom/atom/releases.atom',
|
|
checkpoint: 'ff39504028ff760b856cfb1ce91d7adb7fe1aee97205a2380c2d82f4cc52cad2'
|
|
name 'Github Atom'
|
|
homepage 'https://atom.io/'
|
|
|
|
auto_updates true
|
|
depends_on macos: '>= :mavericks'
|
|
|
|
app 'Atom.app'
|
|
binary "#{appdir}/Atom.app/Contents/Resources/app/apm/bin/apm"
|
|
binary "#{appdir}/Atom.app/Contents/Resources/app/atom.sh", target: 'atom'
|
|
|
|
zap trash: [
|
|
'~/.atom',
|
|
'~/Library/Application Support/Atom',
|
|
'~/Library/Application Support/ShipIt_stderr.log',
|
|
'~/Library/Application Support/ShipIt_stdout.log',
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.atom.sfl*',
|
|
'~/Library/Application Support/com.github.atom.ShipIt',
|
|
'~/Library/Caches/com.github.atom',
|
|
'~/Library/Caches/com.github.atom.ShipIt',
|
|
'~/Library/Preferences/com.github.atom.helper.plist',
|
|
'~/Library/Preferences/com.github.atom.plist',
|
|
'~/Library/Saved Application State/com.github.atom.savedState',
|
|
]
|
|
end
|