From 0f121716adccbd97a239dd7a038a57c6ba2e307c Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 4 Dec 2023 00:29:37 +0900 Subject: [PATCH 1/3] Update the download URL and versioning scheme of command-x --- Casks/c/command-x.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Casks/c/command-x.rb b/Casks/c/command-x.rb index 2ef02f9f7b..aa9aa0cd6b 100644 --- a/Casks/c/command-x.rb +++ b/Casks/c/command-x.rb @@ -1,18 +1,18 @@ cask "command-x" do - version "1.0.6,1684086547" + version "1.0.6-1684086547-1701611235,yubkc4dmr2xy89ja4r4hr,xa0zqmllf0uwrm55latddna99" sha256 "48601491924bf431c6cf9a9bb5e619e5e60b6212521b9385e55fdb1db729217c" - url "https://dsc.cloud/sindresorhus/Command-X-#{version.csv.first}-#{version.csv.second}.zip", - verified: "dsc.cloud/sindresorhus/" + url "https://www.dropbox.com/scl/fi/#{version.csv.second}/Command-X-#{version.major_minor_patch}.zip?rlkey=#{version.csv.third}&raw=1", + verified: "dropbox.com/scl/fi/" name "Command X" desc "Cut and paste files in Finder" homepage "https://sindresorhus.com/command-x" livecheck do url :homepage - regex(/href.*?Command[._-]X[._-](\d+(?:\.\d+)+)-(\w+)\.zip"/i) + regex(%r{href.*?/scl/fi/(\w+)/Command-X-([\d.-]+)\.zip\?rlkey=(\w+)}i) strategy :page_match do |page, regex| - page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } + page.scan(regex).map { |match| "#{match[1]},#{match[0]},#{match[2]}" } end end From 845e55fa5cee344bf74a09567040fd02d076f9c2 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 10 Dec 2023 18:26:52 +0900 Subject: [PATCH 2/3] Add caveats --- Casks/c/command-x.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Casks/c/command-x.rb b/Casks/c/command-x.rb index aa9aa0cd6b..79dccfc8b9 100644 --- a/Casks/c/command-x.rb +++ b/Casks/c/command-x.rb @@ -24,4 +24,12 @@ cask "command-x" do "~/Library/Application Scripts/com.sindresorhus.Command-X", "~/Library/Containers/com.sindresorhus.Command-X", ] + + caveats <<~EOS + This package is the non-App Store Version and claimed to be updated only once a year. + + Use the App Store version whenever possible: + + https://apps.apple.com/app/id6448461551 + EOS end From 6eb01f71bf1c61b6991238d6201b3e8809dcbfb3 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 11 Dec 2023 10:21:28 +1100 Subject: [PATCH 3/3] command-x: update caveat --- Casks/c/command-x.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Casks/c/command-x.rb b/Casks/c/command-x.rb index 79dccfc8b9..42a117bb1f 100644 --- a/Casks/c/command-x.rb +++ b/Casks/c/command-x.rb @@ -26,10 +26,7 @@ cask "command-x" do ] caveats <<~EOS - This package is the non-App Store Version and claimed to be updated only once a year. - - Use the App Store version whenever possible: - - https://apps.apple.com/app/id6448461551 + This variant of #{token} is only updated annually or when security vulnerabilities are discovered. + For a more frequently updated versio, install via the Mac App Store. EOS end