For one of my projects i used building script using packagemaker. Packagemaker allows specify all files i need install from root, so my root had following structure:
Applications
My Application.app
Library
Preferences
MyCompanyName
some.xml
another.xml
tmp
default.p12
usr
local
bin
sometool
I.e. it had following features:
- Some configuration files preinstalled for all users, to global Preferences (some.xml, another.xml)
- Some command line tool being used as by main app as user in /usr/local/bin
- Program uses certificates and there is one default certificate which will be moved to right place in postflight
How to do same with productbuild? Possible?