From f8e0657749f1ad365f6bd0f54a240ffc168ee263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hol=C3=BD?= Date: Sun, 17 Dec 2023 11:39:00 +0100 Subject: [PATCH 1/2] Upgrade Captin.app to v1.3.1 Location of project and appcast was changed --- Casks/c/captin.rb | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Casks/c/captin.rb b/Casks/c/captin.rb index 621e24d577..d4b3f62275 100644 --- a/Casks/c/captin.rb +++ b/Casks/c/captin.rb @@ -1,22 +1,16 @@ cask "captin" do - version "1.1.3,143,1619187317" - sha256 "15854fad5bd0c0303649c1c53561a0ba9c02e6e2ffcfbd492df4b522c800d543" + version "1.3.1" + sha256 "edeedeb73ee0ecdbd017a53f72919e41c5231108a3bab329d6fa4035d0c65fc3" - url "https://dl.devmate.com/com.100hps.captin/#{version.csv.second}/#{version.csv.third}/Captin-#{version.csv.second}.dmg", - verified: "dl.devmate.com/com.100hps.captin/" + url "https://raw.githubusercontent.com/cool8jay/public/master/captin/Captin.zip", + verified: "raw.githubusercontent.com/cool8jay/public/master/captin/" name "Captin" desc "Tool to show caps lock status" - homepage "https://captin.strikingly.com/" + homepage "https://captin.mystrikingly.com/" livecheck do - url "https://updates.devmate.com/com.100hps.captin.xml" - regex(%r{/(\d+)/Captin\d*?[_-]v?(\d+(?:\.\d+)*)\.(?:dmg|zip)}i) - strategy :sparkle do |item, regex| - match = item.url.match(regex) - next if match.blank? - - "#{item.short_version},#{match[2]},#{match[1]}" - end + url "https://raw.githubusercontent.com/cool8jay/public/master/captin/appcast.xml" + strategy :sparkle, &:short_version end app "Captin.app" From 5f47296573818c014837a8b70170fa8aa97d45c5 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Sun, 17 Dec 2023 21:57:53 +1100 Subject: [PATCH 2/2] Use `sha256 :no_check` --- Casks/c/captin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/captin.rb b/Casks/c/captin.rb index d4b3f62275..852a5bb3f0 100644 --- a/Casks/c/captin.rb +++ b/Casks/c/captin.rb @@ -1,6 +1,6 @@ cask "captin" do version "1.3.1" - sha256 "edeedeb73ee0ecdbd017a53f72919e41c5231108a3bab329d6fa4035d0c65fc3" + sha256 :no_check url "https://raw.githubusercontent.com/cool8jay/public/master/captin/Captin.zip", verified: "raw.githubusercontent.com/cool8jay/public/master/captin/"