From 433e31f294fa992889361d334f05f37c71e09d9f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 8 Jan 2021 15:15:55 +0100 Subject: [PATCH] duplicati: add livecheck (#97381) --- .github/workflows/ci.yml | 2 ++ Casks/duplicati.rb | 15 +++++++++++---- audit_exceptions/github_prerelease_allowlist.json | 1 + 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a38165fc634..9e21f54b5b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,8 @@ jobs: if ! brew untap adoptopenjdk/openjdk; then echo '::warning::Untapping adoptopenjdk/openjdk is no longer necessary.' fi + + brew unlink python && brew link --overwrite python if: runner.os == 'macOS' # Workaround until the `cache` action uses the changes from diff --git a/Casks/duplicati.rb b/Casks/duplicati.rb index 0ea52844fc7..025db726a1f 100644 --- a/Casks/duplicati.rb +++ b/Casks/duplicati.rb @@ -1,14 +1,21 @@ cask "duplicati" do - version "2.0.5.1,2020-01-18" - sha256 "38509531cc9a007b98527af604f9a5faeb41b9221a79c7bd36e8846a32f1fda0" + version "2.0.5.111,canary:2020-09-26" + sha256 "98a62f67337e0db74c0ce86082d98a0670d269e367090bc2cc3f9ad5e7e8a46b" - url "https://github.com/duplicati/duplicati/releases/download/v#{version.before_comma}-#{version.before_comma}_beta_#{version.after_comma}/duplicati-#{version.before_comma}_beta_#{version.after_comma}.dmg", + url "https://github.com/duplicati/duplicati/releases/download/v#{version.before_comma}-#{version.before_comma}_#{version.after_comma.before_colon}_#{version.after_colon}/duplicati-#{version.before_comma}_#{version.after_comma.before_colon}_#{version.after_colon}.dmg", verified: "github.com/duplicati/duplicati/" - appcast "https://github.com/duplicati/duplicati/releases.atom" name "Duplicati" desc "Store securely encrypted backups in the cloud!" homepage "https://www.duplicati.com/" + livecheck do + url "https://github.com/duplicati/duplicati/releases/latest" + strategy :page_match do |page| + match = page.match(%r{href=.*?/duplicati-(\d+(?:\.\d+)*)_([^/]*?)_(\d+(?:-\d+)*)\.dmg}i) + "#{match[1]},#{match[2]}:#{match[3]}" + end + end + depends_on formula: "mono" app "Duplicati.app" diff --git a/audit_exceptions/github_prerelease_allowlist.json b/audit_exceptions/github_prerelease_allowlist.json index 24a13495d16..1d7baab8cba 100644 --- a/audit_exceptions/github_prerelease_allowlist.json +++ b/audit_exceptions/github_prerelease_allowlist.json @@ -1,4 +1,5 @@ { + "duplicati": "all", "extraterm": "all", "freetube": "all", "graphsketcher": "all",