homebrew-fuse/Casks/mounty.rb

32 lines
796 B
Ruby

cask "mounty" do
on_catalina :or_older do
version "1.9"
sha256 "5fcedfe712f59c14f39c3385dfed9aebc99d4e8d88f6e870f364cc48624590ef"
livecheck do
skip "newer versions only available for Big Sur or higher"
end
end
on_big_sur :or_newer do
version "2.1"
sha256 "2aeeb012ebaf1d60767d268e48c8b90726e3f05b2e35945f4293c11fbad84381"
depends_on cask: "macfuse"
depends_on formula: "gromgit/fuse/ntfs-3g-mac"
livecheck do
url :homepage
regex(/Latest\s+version:\s*(\d+(?:\.\d+)+)/i)
end
end
url "https://mounty.app/releases/Mounty-#{version}.dmg"
name "Mounty for NTFS"
desc "Re-mounts write-protected NTFS volumes"
homepage "https://mounty.app/"
app "Mounty.app"
zap trash: "~/Library/Preferences/com.cu4uc.mounty.plist"
end