homebrew-cask/Casks/macfusion.rb

23 lines
772 B
Ruby
Raw Normal View History

2016-11-22 06:07:58 +08:00
cask 'macfusion' do
version '2.0.4'
sha256 '6693241fd54d686013864adb86a6ea7eef6c1291546573b628b3ddf7889ef71c'
2016-11-22 06:07:58 +08:00
url "http://macfusionapp.org/releases/Macfusion_#{version}.zip"
appcast 'http://macfusionapp.org/appcast.xml',
checkpoint: 'a729fa91bda8853699381f87427e24c155d7bbef62a9b2e58720ce6415871d20'
2016-11-22 06:07:58 +08:00
name 'Macfusion'
homepage 'http://macfusionapp.org/'
depends_on formula: 'sshfs'
2016-11-22 06:07:58 +08:00
app 'Macfusion.app'
# fix broken bundled sshfs, see https://github.com/osxfuse/osxfuse/wiki/SSHFS#macfusion
postflight do
Dir.chdir("#{appdir}/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources") do
File.rename('sshfs-static', 'sshfs-static.orig')
File.symlink("#{HOMEBREW_PREFIX}/bin/sshfs", 'sshfs-static')
2016-11-22 06:07:58 +08:00
end
end
end