23 lines
883 B
Ruby
23 lines
883 B
Ruby
cask 'telegram-desktop' do
|
|
version '1.5.11'
|
|
sha256 '99b78f3a864fa83010d997fd82a6a3b55634fee29eb4fc0a30f05e2e7f6be30d'
|
|
|
|
# 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
|