Files
homebrew-cask/Casks/s/simpholders.rb
Mike McQuaid aa461148bb Move all remaining casks to sharded subdirectories.
The migration of `orka.rb` and then `o*.rb` has worked well without
complaint so: let's move everything else, too.
2023-08-09 12:08:38 +01:00

23 lines
727 B
Ruby

cask "simpholders" do
version "3.0.12,2366"
sha256 "0f74633bd6bd9723063af0be550364882b93fbb5cd67bac6e2066083174e5f0d"
url "https://simpholders.com/site/assets/files/#{version.csv.second}/simpholders_#{version.csv.first.dots_to_underscores}.dmg"
name "SimPholders"
homepage "https://simpholders.com/"
livecheck do
url "https://simpholders.com/latest/"
regex(%r{/(\d+)/simpholders_(\d+(?:_\d+)*).dmg}i)
strategy :header_match do |headers, regex|
headers["location"].scan(regex).map do |match|
"#{match[1].tr("_", ".")},#{match[0]}"
end
end
end
depends_on macos: ">= :catalina"
app "simpholders_#{version.csv.first.dots_to_underscores}.app", target: "SimPholders.app"
end