excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / vorta.rb
blobedda52d92508f42f2541b3656f5a6398aa0ed95f
1 cask "vorta" do
2   arch arm: "arm", intel: "intel"
4   version "0.10.1"
5   sha256 arm:   "a50808b82f8a7f02e17852b5d537bd7bd4d4b3f04442a9b7409c9bc58f4fceaa",
6          intel: "d1586c9c36ec40190ec73f2a8e808685639db69ff83b5c91c120dbaec1a47dbf"
8   url "https://github.com/borgbase/vorta/releases/download/v#{version}/Vorta-v#{version}-#{arch}.dmg"
9   name "Vorta"
10   desc "Desktop Backup Client for Borg"
11   homepage "https://github.com/borgbase/vorta"
13   livecheck do
14     url :url
15     regex(/^Vorta[._-]v?(\d+(?:\.\d+)+)(:?[._-]#{arch})?\.(?:dmg|pkg|zip)$/i)
16     strategy :github_releases do |json, regex|
17       json.map do |release|
18         next if release["draft"] || release["prerelease"]
20         release["assets"]&.map do |asset|
21           match = asset["name"]&.match(regex)
22           next if match.blank?
24           match[1]
25         end
26       end.flatten
27     end
28   end
30   auto_updates true
31   depends_on macos: ">= :mojave"
33   app "Vorta.app"
35   zap trash: "~/Library/Application Support/Vorta"
37   caveats <<~EOS
38     #{token} requires BorgBackup to run. If you do not need mount support, use
39     the official formula:
41       brew install borgbackup
43     If you plan on mounting archives using macFUSE, consider using the Tap
44     maintained by the Borg team:
46       brew install --cask macfuse
47       brew install borgbackup/tap/borgbackup-fuse
48   EOS
49 end