homebrew-cask/Casks/telegram-desktop.rb

23 lines
882 B
Ruby

cask 'telegram-desktop' do
version '1.6.7'
sha256 'c7bd95f6c81efaf899437ce14148678d67cb31d73c1a25dae286f434931f6335'
# 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