I have an app I need to create an installer for, and all the installer needs to do (besides copying the app) is run a script (or executable) that is not part of the app itself. Any help on how I can do this? I see in the Requirements tab there is a Results of Script action, and there is also the Preinstall Actions in the Actions tab which has an Open File action. Will either of these do the job or should I be looking elsewhere?
相关问题
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Advice for supporting both Mac and Windows Desktop
- Avoid cmake to add the flags -search_paths_first a
- installing packages for python 3
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
- git command-line on Mac OS error “dyld: Symbol not
Here is a good How-to
I just managed to include a Shell script to my package that I made with PackageMaker. I needed to add my app to the login items after installation, so I made a script called
postflight.sh
and put it into a folder. (it seems it works with any location)And then in my package, I have Applications. In Contents, Package:Applications, in the Scripts tab, I choose the
postflight.sh
in Postflight section. That's it.my
postflight.sh
starts withand then it has some script to put the app into the login items. When I didn't have that, I could make the package, but the installation failed. Hope this is helpful.
This PackageMaker How-To article is out of date, but it has some very useful info on scripts about half-way down. Look for the table showing the command line variables as seen from shell and perl, plus some useful exit status values.