José
José

Reputation: 3179

Packagemaker postfligh script

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.

Upvotes: 0

Views: 578

Answers (1)

Gordon Davisson
Gordon Davisson

Reputation: 126048

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/directory instead of --resources.

Upvotes: 1

Related Questions