diff --git a/Casks/d/duplicati.rb b/Casks/d/duplicati.rb index 7e94c3d580dc..d7708e75abd1 100644 --- a/Casks/d/duplicati.rb +++ b/Casks/d/duplicati.rb @@ -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" @@ -20,8 +29,4 @@ "~/.config/Duplicati", "~/Library/Application Support/Duplicati", ] - - caveats do - requires_rosetta - end end