excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / attachecase.rb
blobb3805a2c76b4e02c7e906e11f872cd1e16f3e6f8
1 cask "attachecase" do
2   version "4.2.1"
3   sha256 "24cae251e12d8c673b8b22f137f39cb7c4fb2c4a317074fee6090c03e81696f4"
5   url "https://hibara.org/software/attachecase/download/?f=AtcMac#{version.no_dots}.zip",
6       user_agent: :fake
7   name "AttacheCase"
8   desc "Utility for encrypting/decrypting files and directories"
9   homepage "https://hibara.org/software/attachecase/"
11   livecheck do
12     url "https://hibara.org/software/attachecase/json/attachecase_mac_history_en.json"
13     regex(/^\D*(\d+(?:\.\d+)+)$/i)
14     strategy :json do |json, regex|
15       json.map do |item|
16         match = item["version"]&.match(regex)
17         next if match.blank?
19         match[1]
20       end
21     end
22   end
24   depends_on macos: ">= :mojave"
26   app "AttacheCase.app"
28   zap trash: [
29     "~/Library/Application Scripts/dev.hibara.attachecase",
30     "~/Library/Containers/dev.hibara.attachecase",
31   ]
33   caveats do
34     requires_rosetta
35   end
36 end