homebrew-cask/Casks/textmate.rb

28 lines
1.1 KiB
Ruby

cask 'textmate' do
version '2.0'
sha256 'e3e9c8825bb561476d3b89280fcccacf1a98c0b62fa7b271fc4216941e0c7d24'
# github.com/textmate/textmate was verified as official when first introduced to the cask
url "https://github.com/textmate/textmate/releases/download/v#{version}/TextMate_#{version}.tbz"
appcast 'https://api.textmate.org/releases/release?os=10.14.6',
configuration: version
name 'TextMate'
homepage 'https://macromates.com/'
auto_updates true
depends_on macos: '>= :sierra'
app 'TextMate.app'
binary "#{appdir}/TextMate.app/Contents/Resources/mate"
uninstall quit: 'com.macromates.TextMate'
zap trash: [
'~/Library/Application Support/TextMate',
'~/Library/Caches/com.macromates.TextMate',
'~/Library/Preferences/com.macromates.TextMate.plist',
'~/Library/Saved Application State/com.macromates.TextMate.savedState',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.macromates.textmate.sfl2',
]
end