excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / wire.rb
blob3af6e127be5e0fa265dddf251a3e15a372dd5232
1 cask "wire" do
2   version "3.37.5164"
3   sha256 "c50e84699144eaa7698058f52e89b7ef04fc51177916c4701bcf5878cffe53b9"
5   url "https://github.com/wireapp/wire-desktop/releases/download/macos%2F#{version}/Wire.pkg",
6       verified: "github.com/wireapp/wire-desktop/"
7   name "Wire"
8   desc "Collaboration platform focusing on security"
9   homepage "https://wire.com/"
11   # Not every GitHub release provides a file for macOS, so we check multiple
12   # recent releases instead of only the "latest" release.
13   livecheck do
14     url :url
15     regex(%r{^macos[/._-]v?(\d+(?:\.\d+)+)$}i)
16     strategy :github_releases do |json, regex|
17       json.map do |release|
18         next if release["draft"] || release["prerelease"]
20         match = release["tag_name"]&.match(regex)
21         next if match.blank?
23         match[1]
24       end.flatten
25     end
26   end
28   pkg "Wire.pkg"
30   uninstall signal:  [
31               ["TERM", "com.wearezeta.zclient.mac.helper"],
32               ["TERM", "com.wearezeta.zclient.mac"],
33             ],
34             pkgutil: "com.wearezeta.zclient.mac"
36   zap trash: "~/Library/Containers/com.wearezeta.zclient.mac"
37 end