cask "gifox" do version "2.2.5,020205.01" sha256 "30448da3b7473c6628c635075a5fc079d859a925c1def651aa628964cfc97335" url "https://d3si16icyi9iar.cloudfront.net/gifox/#{version.after_comma}.dmg", verified: "d3si16icyi9iar.cloudfront.net/gifox/" name "gifox" desc "App to record the screen" homepage "https://gifox.io/" livecheck do url "https://gifox.io/download/latest" strategy :header_match do |headers| match = headers["location"].match(%r{/(\d(\d)\d(\d)\d(\d).\d\d)\.dmg}i) "#{match[2]}.#{match[3]}.#{match[4]},#{match[1]}" end end app "Gifox.app" uninstall launchctl: "com.gifox.gifox#{version.major}.agent", quit: "com.gifox.gifox#{version.major}" zap trash: [ "~/Library/Application Support/Gifox #{version.major}", "~/Library/Caches/com.gifox.gifox#{version.major}", "~/Library/Cookies/com.gifox.gifox#{version.major}.binarycookies", "~/Library/Preferences/com.gifox.gifox#{version.major}.plist", ] end