homebrew-cask/Casks/osxfuse.rb

51 lines
1.6 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'osxfuse' do
2016-10-26 04:53:47 +08:00
version '3.5.3'
sha256 '9d48cbfe360bead9e9fd31bc95e18a90f03be7c4be5b5c62acd7df98c8c0c80b'
2016-09-15 03:13:00 +08:00
# 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',
2016-10-26 04:53:47 +08:00
checkpoint: '7d27fe5e4795751d1e734f3f8e38d62c5fd299f91b5c5a6885de9720dcba3f99'
2015-08-27 01:00:20 +08:00
name 'OSXFUSE'
homepage 'https://osxfuse.github.io/'
installer script: '/usr/sbin/installer',
args: [
'-pkg', "#{staged_path}/Extras/FUSE for macOS #{version}.pkg",
'-target', '/',
'-applyChoiceChangesXML', "#{staged_path}/Extras/Choices.xml"
]
preflight do
IO.write "#{staged_path}/Extras/Choices.xml", <<-EOS.undent
<plist>
<array>
<dict>
<key>attributeSetting</key>
<integer>1</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>com.github.osxfuse.pkg.MacFUSE</string>
</dict>
</array>
</plist>
EOS
end
2014-11-22 22:12:43 +08:00
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