homebrew-cask/Casks/osxfuse.rb

34 lines
1.1 KiB
Ruby

cask 'osxfuse' do
version '3.5.5'
sha256 '4b321dde6f791119408eff55a2508cecdb61ffc06f6d004720ec699088cf6b25'
# 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: '95d1b25e52f063a57dda046f126dff2ebbcb82e72bcc029c9cf1c7ada0363f75'
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