homebrew-cask/Casks/telegram-desktop.rb

23 lines
883 B
Ruby

cask 'telegram-desktop' do
version '2.2.0'
sha256 '918a4986ab6609492f4eba53709c6563224f1251f940b7f0c98f09ff9772c70b'
# github.com/telegramdesktop/tdesktop/ was verified as official when first introduced to the cask
url "https://github.com/telegramdesktop/tdesktop/releases/download/v#{version}/tsetup.#{version}.dmg"
appcast 'https://github.com/telegramdesktop/tdesktop/releases.atom'
name 'Telegram Desktop'
homepage 'https://desktop.telegram.org/'
auto_updates true
conflicts_with cask: 'telegram-desktop-dev'
# Renamed to avoid conflict with telegram
app 'Telegram.app', target: 'Telegram Desktop.app'
zap trash: [
'~/Library/Application Support/Telegram Desktop',
'~/Library/Preferences/com.tdesktop.Telegram.plist',
'~/Library/Saved Application State/com.tdesktop.Telegram.savedState',
]
end