Files
homebrew-cask/Casks/p/pictureview.rb
Mike McQuaid aa461148bb Move all remaining casks to sharded subdirectories.
The migration of `orka.rb` and then `o*.rb` has worked well without
complaint so: let's move everything else, too.
2023-08-09 12:08:38 +01:00

26 lines
732 B
Ruby

cask "pictureview" do
version "2.3.4"
sha256 "3975d6e10f8e04e4339eadeafd0af511611fd9ba852d4c3e724dbbb3d811abce"
url "https://wl879.github.io/apps/picview/PictureView_#{version}.dmg"
name "Picture View"
desc "Image viewer"
homepage "https://wl879.github.io/apps/picview/index.html"
livecheck do
url "https://raw.githubusercontent.com/wl879/wl879.github.io/master/apps/picview/appcase.xml"
strategy :sparkle do |item|
item.url[%r{/PictureView[._-]v?(\d+(?:\.\d+)+)\.dmg}i, 1]
end
end
depends_on macos: ">= :mojave"
app "PictureView.app"
zap trash: [
"~/Library/Preferences/com.zouke.PictureView.plist",
"~/Library/Saved Application State/com.zouke.PictureView.savedState",
]
end