excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / waltr-heic-converter.rb
blobaa25ac631a6feca2442e24dfa70a5c1ac65c6c06
1 cask "waltr-heic-converter" do
2   version "1.0.2,1537972843"
3   sha256 "6e716143b73cf314e8fd1728a466ede9d7b99b1ec2364b55a7dad818ffcd1ab2"
5   url "https://dl.devmate.com/com.softorino.WaltrHeicConverter/#{version.csv.first}/#{version.csv.second}/WALTRHEICConverter-#{version.csv.first}.zip",
6       verified: "dl.devmate.com/com.softorino.WaltrHeicConverter/"
7   name "WALTR HEIC Converter"
8   desc "Drag-and-drop HEIC to JPEG image converter"
9   homepage "https://softorino.com/heic-converter/"
11   livecheck do
12     url "https://updates.devmate.com/com.softorino.WaltrHeicConverter.xml"
13     regex(%r{/(\d+)/WALTRHEICConverter\d*?[_-]v?(\d+(?:\.\d+)*)\.(?:dmg|zip)}i)
14     strategy :sparkle do |item, regex|
15       match = item.url.match(regex)
16       next if match.blank?
18       "#{match[2]},#{match[1]}"
19     end
20   end
22   auto_updates true
24   app "WALTR HEIC Converter.app"
26   zap trash: [
27     "~/Library/Logs/com.softorino.WaltrHeicConverter",
28     "~/Library/Preferences/com.softorino.WaltrHeicConverter.plist",
29   ]
31   caveats do
32     requires_rosetta
33   end
34 end