Packaging OSXFuse with another application

216 views
Skip to first unread message

Joe Bienkowski

unread,
Oct 19, 2014, 3:05:15 PM10/19/14
to osxfus...@googlegroups.com
It looks like this question has been asked a few times, but I have not seen a complete answer.

I have a mac app that requires OSX Fuse and I want to silently install it with my app.  

Using the sudo installer mechanism doesn't seem like the right answer.  

Has anyone gotten this working seamlessly?  Could someone post some instructions?

Nickolay Olshevsky

unread,
Oct 20, 2014, 12:57:06 PM10/20/14
to osxfus...@googlegroups.com
You cannot include complete OSXFUSE package since, okay, it is of some type which cannot be included (sorry, forgot the exact package type - installer package, or whatever else).
But you can unpack it, got internal pkgs, and make your own pkg installer with your application as well.
Or, you can include those inner packages to .app bundle and run installing script in background when you app runs for the first time.

This link should help you to understand what's going on: http://stackoverflow.com/questions/11487596/making-os-x-installer-packages-like-a-pro-xcode4-developer-id-mountain-lion-re

Benjamin Fleischer

unread,
Oct 20, 2014, 3:23:12 PM10/20/14
to osxfus...@googlegroups.com
Nickolay is correct, the osxfuse distribution package cannot be included in another distribution package. This is a limitation of the package format. Distribution packages may only include component packages but no other distribution packages.

But you can unpack it, got internal pkgs, and make your own pkg installer with your application as well.

Do not do this!

The official osxfuse 2.x distribution packages contains three slightly different versions of osxfuse. One for Mac OS X 10.5, one for Mac OS X 10.6 to 10.8 and a third for OS X 10.9 and 10.10. The osxfuse distribution package will install the correct version depending on the version of OS X you are running.

As you know osxfuse consists of three parts: core, preference pane, and MacFUSE compatibility layer. When updating osxfuse the official distribution package makes sure that all components stay in sync.

osxfuse is a shared system component. Messing with its installer can have adverse side effects. I cannot stress enough that it is a really bad idea to extract individual component packages from the official osxfuse distribution and re-package them.

The proper way to include osxfuse into your distribution package would be to add a postinstall script and install osxfuse by invoking:

sudo installer -package /path/to/osxfuse.pkg -target /

As a side note, a number of people have complained on this mailing list about osxfuse "magically" appearing on their Macs without them installing it. In my opinion it would be preferable to inform the user that your app requires osxfuse instead of installing it silently.

Regards,
Benjamin

--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages