Skip to content

Commit

Permalink
Merge pull request #195602 from antivirtel/patch-2
Browse files Browse the repository at this point in the history
duplicati 2.1.0.2_beta_2024-11-29
  • Loading branch information
chenrui333 authored Dec 18, 2024
2 parents ca1f51b + ac50216 commit db6f0e6
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions Casks/d/duplicati.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
cask "duplicati" do
version "2.0.8.1_beta_2024-05-07"
sha256 "c5576c52e838f81c12b7988a70d34562d8622013e024356d28df450835a34523"
arch arm: "arm64", intel: "x64"

url "https://updates.duplicati.com/beta/duplicati-#{version}.dmg"
version "2.1.0.2,2024-11-29"
sha256 intel: "62045156094c0796c2d9631068ea6746ec24f704b166e8bdb36a0158ea7395af",
arm: "fc69b70df98b8966731aeddd94abe15dae1e1033e405d47e4082e16789c2d8ac"

url "https://updates.duplicati.com/beta/duplicati-#{version.csv.first}_beta_#{version.csv.second}-osx-#{arch}-gui.dmg"
name "Duplicati"
desc "Store securely encrypted backups in the cloud"
homepage "https://www.duplicati.com/"

livecheck do
url "https://updates.duplicati.com/beta/latest-installers.js"
regex(/^\s+"name":\s+"duplicati[._-]v?(.+)\.dmg",$/i)
url "https://updates.duplicati.com/beta/latest-v2.manifest"
regex(/duplicati[._-]v?(\d+(?:\.\d+)+)[._-]beta[._-](\d+(?:[.-]\d+)+)[._-]osx[._-]#{arch}[._-]gui\.dmg/i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

"#{match[1]},#{match[2]}"
end
end

depends_on formula: "mono"
Expand All @@ -20,8 +29,4 @@
"~/.config/Duplicati",
"~/Library/Application Support/Duplicati",
]

caveats do
requires_rosetta
end
end

0 comments on commit db6f0e6

Please sign in to comment.