Platypus Installer Tutorial

This short tutorial will demonstrate the process of creating a GUI installer using a shell script and Platypus.

Once you have defined the name of your installer and set an appropriate icon, you'll probably want to set Output as "Progress Bar" to indicate to the end user that some activity is taking place. The install may also take some time, depending on what you're installing.

If your installer needs to install files in protected locations on the file system (i.e. in places where your end user will typically not have write-privileges), you'll need to click "Show advanced options" and check the "Requires Adminstrator privileges" checkbox.

We now want to define the files that our installer will actually install. We add files to the file list by pressing the "+" button to the right until we have specified all the files we want.

These files will be copied into the Resources folder of the application.

Now it's time to look at the script that will actually do the installing. As can be seen in the image above, I've added two files: and MyFramework.framework. To install these two, I use the following script:


cp -R "$1/Contents/Resources/" "/Applications/"
cp -R "$1/Contents/Resources/MyFramework.framework" "/Library/Frameworks/"

Of course, you may want to modify permissions using chmod or do extra things like open the application (a simple "open /Applications/").

With a script such as this and the above-mentioned settings we are ready to go -- press the Create button and you'll have a fully-functioning installer.