homebrew-cask/Casks/c/camerabag-photo.rb

24 lines
811 B
Ruby

cask "camerabag-photo" do
version "2024.2.0"
sha256 "26184547c4b3175c8a846db86d44e9504721825d53948a26a4efb030a938b12f"
url "https://nevercenter.com/camerabag/download/filearchive/Install_CameraBag_Photo_#{version.dots_to_underscores}_mac.dmg"
name "CameraBag"
desc "Filter and edit photos"
homepage "https://nevercenter.com/camerabag/photo/"
livecheck do
url "https://nevercenter.com/camerabag/download/?filetype=mac"
regex(/href=.*?Install[._-]?CameraBag[._-]?Photo[._-]?v?(\d+(?:[._]\d+)+)[._-]?mac\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| match[0].tr("_", ".") }
end
end
depends_on macos: ">= :catalina"
app "CameraBag Photo.app"
zap trash: "~/Library/Saved Application State/com.nevercenter.camerabagphoto.savedState"
end