46 lines
1.1 KiB
Ruby
46 lines
1.1 KiB
Ruby
cask "deepl" do
|
|
on_catalina :or_older do
|
|
version "3.7.292629"
|
|
sha256 "efcac4988a606d9793a3bdb8e7e73dce8e3d06ed2249a4434eb54c1624b40b87"
|
|
|
|
livecheck do
|
|
url "https://appdownload.deepl.com/macos/update.json"
|
|
strategy :json do |json|
|
|
json["currentRelease"]
|
|
end
|
|
end
|
|
end
|
|
on_big_sur :or_newer do
|
|
version "23.10.1631621"
|
|
sha256 "4623436344b52dbe382bae055398e86a5cb42a32cf8bbe333f5fda41d6a5edfc"
|
|
|
|
livecheck do
|
|
url "https://appdownload.deepl.com/macos/bigsur/update.json"
|
|
strategy :json do |json|
|
|
json["currentRelease"]
|
|
end
|
|
end
|
|
end
|
|
|
|
url "https://www.deepl.com/macos/download/#{version}/DeepL_#{version}.zip"
|
|
name "DeepL"
|
|
desc "Trains AIs to understand and translate texts"
|
|
homepage "https://www.deepl.com/"
|
|
|
|
auto_updates true
|
|
|
|
app "DeepL.app"
|
|
|
|
uninstall quit: [
|
|
"com.linguee.DeepLCopyTranslator",
|
|
"com.linguee.DeepLLauncher",
|
|
"com.linguee.DeepLStatusBar",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/com.linguee.DeepLCopyTranslator*",
|
|
"~/Library/Group Containers/*.com.linguee.DeepL",
|
|
"~/Library/Preferences/com.linguee.DeepLCopyTranslator.plist",
|
|
]
|
|
end
|