35 lines
1.2 KiB
Ruby
35 lines
1.2 KiB
Ruby
cask "telegram" do
|
|
version "8.3,223729"
|
|
sha256 "b45d144f110a3b1515cc811162eab7806e79c002ccde0619c86cc254783b398e"
|
|
|
|
url "https://osx.telegram.org/updates/Telegram-#{version.csv.first}.#{version.csv.second}.app.zip"
|
|
name "Telegram for macOS"
|
|
desc "Messaging app with a focus on speed and security"
|
|
homepage "https://macos.telegram.org/"
|
|
|
|
livecheck do
|
|
url "https://osx.telegram.org/updates/versions.xml"
|
|
strategy :page_match do |page|
|
|
page.scan(/Telegram[._-](\d+(?:\.\d+)+)\.(\d{6})\.app\.zip/)
|
|
.map { |matches| "#{matches[0]},#{matches[1]}" }
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :el_capitan"
|
|
|
|
app "Telegram.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Scripts/ru.keepcoder.Telegram",
|
|
"~/Library/Application Scripts/ru.keepcoder.Telegram.TelegramShare",
|
|
"~/Library/Caches/ru.keepcoder.Telegram",
|
|
"~/Library/Containers/ru.keepcoder.Telegram",
|
|
"~/Library/Containers/ru.keepcoder.Telegram.TelegramShare",
|
|
"~/Library/Cookies/ru.keepcoder.Telegram.binarycookies",
|
|
"~/Library/Group Containers/*.ru.keepcoder.Telegram",
|
|
"~/Library/Preferences/ru.keepcoder.Telegram.plist",
|
|
"~/Library/Saved Application State/ru.keepcoder.Telegram.savedState",
|
|
]
|
|
end
|