automattic-texts 0.83.8 (new cask)

Co-authored-by: Bevan Kay <bevanjkay@gmail.com>
Co-authored-by: Justin Krehel <39449589+krehel@users.noreply.github.com>
Signed-off-by: Justin Krehel <39449589+krehel@users.noreply.github.com>
This commit is contained in:
PythonCoderAS 2024-04-09 15:15:28 -04:00 committed by Rui Chen
parent 685aaabed1
commit 6e097b2133
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
cask "automattic-texts" do
arch arm: "arm64", intel: "x64"
on_arm do
version "0.83.8,3356c9f1f2"
sha256 "974f9e0e6f37643f5cec65ead5c2fd8b690e1fa4898385d2bf2d1d419748643c"
end
on_intel do
version "0.83.8,f26091ab9e"
sha256 "2a6748a29f31b143d2e79688d79ccec0b07f52bb180a479a2b28dc62e90e75e4"
end
url "https://texts-binaries.texts.com/builds/Texts-macOS-#{arch}-v#{version.csv.first}-#{version.csv.second}.zip"
name "Texts.com"
desc "DM Manager"
homepage "https://texts.com/"
livecheck do
url "https://texts.com/api/install/macos/#{arch}/latest.zip"
regex(/Texts[._-]macOS[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)[._-](\h+)\.zip/i)
strategy :header_match do |headers, regex|
match = headers["location"].match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
depends_on macos: ">= :catalina"
app "Texts.app"
zap trash: [
"~/Library/Application Support/Texts",
"~/Library/Caches/io.texts.Texts",
"~/Library/HTTPStorages/io.texts.Texts",
"~/Library/Preferences/com.texts.Texts.plist",
]
end