1

I have a requirement to create desktop icon after installation, and I can't find out how. I am using package maker to create a Mac install package (.pkg) I am aware that it is not the best practice to create shortcuts on desktop, but this an important requirement.

m0s
  • 4,250
  • 9
  • 41
  • 64

1 Answers1

2

This functionality isn't built into PackageMaker and usually isn't seen with any Mac apps. That doesn't mean you can do this manually by writing a bash script that will run on completion of the installation and copy a file to the desktop. Just include a component and install it to \tmp then in the Postinstall script for that package mv the file to the $USER's desktop.

ex. mv /tmp/icon.sh /Users/$USER/Desktop/icon.sh

Kevin
  • 126
  • 1
  • 4