From d4055bbfe7163aa82466d8cfb756a3060668da91 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 24 Mar 2021 19:37:09 +0100 Subject: [PATCH] themeengine: add livecheck (#102538) --- Casks/themeengine.rb | 11 ++++++++++- audit_exceptions/github_prerelease_allowlist.json | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Casks/themeengine.rb b/Casks/themeengine.rb index 6dd4a6cab0..ead48c0165 100644 --- a/Casks/themeengine.rb +++ b/Casks/themeengine.rb @@ -9,13 +9,22 @@ cask "themeengine" do sha256 "2f7039bf8a30a20da20b292252759a501d15962f909d3b2274db9c2ec7a3bf39" url "https://github.com/alexzielenski/ThemeEngine/releases/download/#{version.before_comma}(#{version.after_comma})/ThemeEngine_111.zip" - appcast "https://github.com/alexzielenski/ThemeEngine/releases.atom" end name "ThemeEngine" desc "App to edit compiled .car files" homepage "https://github.com/alexzielenski/ThemeEngine/" + livecheck do + url :url + strategy :git do |tags| + tags.map do |tag| + match = tag.match(/^(\d+(?:\.\d+)*)\((\d+)\)$/i) + "#{match[1]},#{match[2]}" if match + end.compact + end + end + app "ThemeEngine.app" zap trash: "~/Library/Preferences/com.alexzielenski.ThemeEngine.LSSharedFileList.plist" diff --git a/audit_exceptions/github_prerelease_allowlist.json b/audit_exceptions/github_prerelease_allowlist.json index 00366c33d6..d07edf16de 100644 --- a/audit_exceptions/github_prerelease_allowlist.json +++ b/audit_exceptions/github_prerelease_allowlist.json @@ -26,6 +26,7 @@ "shadowsocksx-ng-r": "all", "splitshow": "all", "syntax-highlight": "all", + "themeengine": "all", "toggl-track": "all", "xit": "all" }