homebrew-cask/Casks/osxfuse.rb

34 lines
1.1 KiB
Ruby

cask 'osxfuse' do
version '3.5.4'
sha256 '6c8f48ff1f67db41ece2a042a2649b875d12f7ed6ee0b50d08eebae26c46c5ca'
# github.com/osxfuse was verified as official when first introduced to the cask
url "https://github.com/osxfuse/osxfuse/releases/download/osxfuse-#{version}/osxfuse-#{version}.dmg"
appcast 'https://github.com/osxfuse/osxfuse/releases.atom',
checkpoint: 'ee97fca5bf5edc88097f81ba0cdf5903b42c8baa7adf9fd1f49ac1f9bc7e6e59'
name 'OSXFUSE'
homepage 'https://osxfuse.github.io/'
pkg "Extras/FUSE for macOS #{version}.pkg",
choices: [
'choiceIdentifier' => 'com.github.osxfuse.pkg.MacFUSE',
'choiceAttribute' => 'selected',
'attributeSetting' => 1,
]
postflight do
set_ownership ['/usr/local/include', '/usr/local/lib']
end
uninstall pkgutil: [
'com.github.osxfuse.pkg.Core',
'com.github.osxfuse.pkg.MacFUSE',
'com.github.osxfuse.pkg.PrefPane',
],
kext: 'com.github.osxfuse.filesystems.osxfusefs'
caveats do
reboot
end
end