excluding externals when building collectives

monohusche's icon

Hi there,

I am providing optional support of a commercial external (elastic) in my app, and as I would like to distribute the app as a collective, I need to exclude the locally installed external from being copied to the collective.

I already tried to make it fully dynamic (using js.newdefault), but the external is still referenced (probably the build routine instantiates the patcher tree and copies everything that is referenced).

The build interface doesn't support exclude, only include. So looks like I am stuck, especially as mxf is not meant to be a means of protection, probably pretty easy to hack in order to get those externals out of it.

any idea ?

Rob Sussman's icon

Try adding to the top of your collective script the line "excludeexternals true". This will exclude *all* externals, but perhaps that is OK.

Rob

Peter Castine's icon

Rob Sussman wrote on Fri, 27 February 2009 19:08Try adding to the top of your collective script the line "excludeexternals true". This will exclude *all* externals, but perhaps that is OK.

If you go that route, you can add the externals you do want to include with the collective post facto. At least with Standalones on Mac OS. Just open the Standalone Bundle (Show Package Contents from the context menu in the Finder), and add the externals you need into the Contents/support/ folder. You can place them into a sub-folder called 'externals' or something if you want to keep things tidy.