cask "pixel-shift-combiner" do version "1.6.0,1060,bbh12c19" sha256 "8095e878942602162d8834b3053a5b75074ba4a41a0d2fd48c28a574460c00af" url "https://dl.fujifilm-x.com/support/software/pixel-shift-combiner-mac#{version.csv.second}-#{version.csv.third}/FUJIFILM_PixelShiftCombiner#{version.csv.second}.dmg" name "Fujifilm Pixel Shift Combiner" desc "Tool to tether and combine photos for Fujifilm cameras with IBIS function" homepage "https://www.fujifilm-x.com/en-us/support/download/software/pixel-shift-combiner/" livecheck do url :homepage regex(%r{Mac\sVersion:\s*v?(\d+(?:\.\d+)+).*href=.*?pixel-shift-combiner-mac(\d+)[._-]([a-z0-9]+)/}im) strategy :page_match do |page, regex| match = page.match(regex) next if match.blank? "#{match[1]},#{match[2]},#{match[3]}" end end depends_on macos: ">= :high_sierra" app "Pixel Shift Combiner.app" zap trash: [ "~/Library/Application Support/com.fujifilm.denji/*Pixel Shift Combiner", "~/Library/Preferences/com.fujifilm.denji.PIXEL-SHIFT-COMBINER.plist", ] end