excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / watchfacestudio.rb
blob86a07126aa8656832ba46a252ff4c144124ef28d
1 cask "watchfacestudio" do
2   version "1.7.13,1ee17ed8-231f-4b46-b857-f4c68a2dd4c8"
3   sha256 "9438ad3b05a1cd5b602187e07dee46bc8461fbce88334296b7ccd1c3f6ddb415"
5   url "https://developer.samsung.com/watchfacestudio/file/#{version.csv.second}"
6   name "Watch Face Studio"
7   desc "Graphic authoring tool for creating watch faces for Wear OS"
8   homepage "https://developer.samsung.com/WatchFaceStudio"
10   livecheck do
11     url "https://developer.samsung.com/watch-face-studio/download.html"
12     regex(%r{href=.*?file/([a-z0-9]+(?:-[a-z0-9]+)+)".*?macOS\sv?(\d+(?:\.\d+)+)}i)
13     strategy :page_match do |page, regex|
14       match = page.match(regex)
15       next if match.blank?
17       "#{match[2]},#{match[1]}"
18     end
19   end
21   pkg "WatchFaceStudio_#{version.csv.first}.pkg"
23   uninstall pkgutil: "WatchFaceStudio"
25   zap trash: [
26     "~/Library/Application Support/watchfacestudio",
27     "~/Library/Preferences/WatchFaceStudio.plist",
28   ]
29 end