I have created an installer using packagemaker, but i don’t see how to add a postfligh script with the PackageMaker UI.
I try the to put a “postflight.sh” in resources folder, and pass the –resources command line option when build the package but that seems to not work.
packagemaker –doc myinstaller.pmdoc –resources resources –out mypackage.pkg
But the postflight.sh script doesn’t seems to run, the script is executable and works fine from console, any ideas?
I using latest Xcode 4.2 if that matters.
I haven’t tested this, but if I understand it right you need to name the script “postinstall” (no .sh extension), and pass the directory it’s in with
--scripts path/to/scripts/directoryinstead of--resources.