开发者

Packagemaker postfligh script

开发者 https://www.devze.com 2023-04-13 01:45 出处:网络
I have created an installer using packagemaker, but i don\'t see how to add a postfligh script with the PackageMaker UI.

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 whe开发者_开发技巧n 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/directory instead of --resources.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号