excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / startupizer.rb
blob2627fe01cd68395d3d503491c5fe36c3a91b5ef1
1 cask "startupizer" do
2   version "2,2060,1527510167"
3   sha256 "56792a52fc91129f6f192cbbc0dbc6a7175d0699f2dab726baaf7d94f30ce150"
5   url "https://dl.devmate.com/com.gentlebytes.Startupizer#{version.major}/#{version.csv.second}/#{version.csv.third}/Startupizer#{version.major}-#{version.csv.second}.zip",
6       verified: "dl.devmate.com/com.gentlebytes.Startupizer#{version.major}/"
7   name "Startupizer#{version.major}"
8   desc "Login items handler"
9   homepage "http://gentlebytes.com/startupizer/"
11   livecheck do
12     url "https://updates.devmate.com/com.gentlebytes.Startupizer#{version.major}.xml"
13     regex(%r{/(\d+)/Startupizer(\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[3]},#{match[1]}"
19     end
20   end
22   app "Startupizer#{version.major}.app"
24   zap trash: [
25     "~/Library/Caches/com.gentlebytes.Startupizer#{version.major}",
26     "~/Library/Preferences/com.gentlebytes.Startupizer#{version.major}.plist",
27   ]
29   caveats do
30     requires_rosetta
31   end
32 end