Browse Source

sublime-text-dev: Various improvements

Add appcast, uninstall, zap, and conflicts_with stanzas. Add comment for
url indicating that download host is official vendor.
master
Josh Hagins 10 years ago
parent
commit
3be99fbc09
  1. 15
      Casks/sublime-text-dev.rb

15
Casks/sublime-text-dev.rb

@ -2,13 +2,28 @@ cask :v1 => 'sublime-text-dev' do
version '3069'
sha256 '96f0ed890839bc554e8fd26b03c9404218feacb4aefbedc0fac9cdd87799654d'
# rackcdn.com is the official download host per the vendor homepage
url "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%20#{version}.dmg"
appcast 'http://www.sublimetext.com/updates/3/dev/appcast_osx.xml',
:sha256 => '13d474c1ab90f6b9d78277d05b4593dffd6b4b822742004aebf80dc15ecccbe5'
name 'Sublime Text'
homepage 'http://www.sublimetext.com/3dev'
license :closed
app 'Sublime Text.app'
binary 'Sublime Text.app/Contents/SharedSupport/bin/subl'
uninstall :quit => 'com.sublimetext.3'
zap :delete => [
'~/Library/Application Support/Sublime Text 3',
'~/Library/Caches/com.sublimetext.3',
'~/Library/Preferences/com.sublimetext.3.plist',
'~/Library/Saved Application State/com.sublimetext.3.savedState'
]
conflicts_with :cask => 'caskroom/versions/sublime-text3'
caveats do
files_in_usr_local
end

Loading…
Cancel
Save