29 lines
806 B
Ruby
29 lines
806 B
Ruby
cask "pixelsnap" do
|
|
version "2.5"
|
|
sha256 "e7f7a9a979c0602e54dcad5f487f27808a983db09c6c4c9151285de7209773f2"
|
|
|
|
url "https://updates.getpixelsnap.com/v#{version.major}/PixelSnap-#{version.major}-#{version}.dmg"
|
|
name "PixelSnap"
|
|
desc "Screen measuring tool"
|
|
homepage "https://getpixelsnap.com/"
|
|
|
|
livecheck do
|
|
url "https://updates.getpixelsnap.com/v#{version.major}/appcast.xml"
|
|
strategy :page_match
|
|
regex(/sparkle:version="(\d+(?:\.\d+)+)"/i)
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "PixelSnap #{version.major}.app"
|
|
|
|
uninstall quit: "pl.maketheweb.pixelsnap2"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/PixelSnap",
|
|
"~/Library/Caches/SentryCrash/PixelSnap 2",
|
|
"~/Library/Caches/pl.maketheweb.pixelsnap2",
|
|
"~/Library/Preferences/pl.maketheweb.pixelsnap2.plist",
|
|
]
|
|
end
|