OS Compatibility:
Simple Package Creator.app has been tested and verified to run on the following versions of macOS:
Not tested on the following versions of macOS:
============================
Using Simple Package Creator.app
As needed, download the Simple_Package_Creator_Installer.zip file from the installer directory in this GitHub repo.
Once downloaded and installed, double-click on the Simple Package Creator application.
You'll be prompted to select the self-contained application that you want to create an installer package from.
Once you've selected the self-contained application, the application will be copied to a temporary build location and a dialog window will appear to let you know that this may take a little while.
You'll be prompted to name the installer package. By default, the name filled in will be My Great Application Installer Package, but this name can be changed as desired.
Once you've entered a name for the installer package, you'll be prompted for a package identifier. By default, the name filled in will be com.github.simple_package, but this name should be changed to be something unique.
Once you've entered an identifier for the installer package, you'll be prompted for a version number. By default, the value filled in will be 1.0, but this value should be changed to be something unique (preferably related to the application's version number.)
Once the package name, package identifier and package version have been set, Simple Package Creator.app will prompt for an administrator's username and password.
Once the admin username and password are provided, Simple Package Creator.app will create the installer package and prompt you when it's finished.
Click OK at the prompt and a new Finder window will open and display the newly-created installer package.
Simple Package Creator.app will automatically exit.
Once installed, the self-contained application will be stored in /Applications and will have the following permissions:
Owner: root (read-write)
Group: wheel (read-only)
Everyone: (read-only)
How Simple Package Creator.app works
Simple Package Creator.app an Automator application that will allow the selection of a self-contained application and creates an installer package that enables the installation of the application with pre-set permissions into /Applications. When a script is selected, the following process takes place:
The self-contained application is copied to /tmp as a zip archive named simple_package_creator_tempfile.zip, to give the package-building script a consistent value to work with.
After the package name, package identifier and package version are set, /tmp is checked to make sure that there is not an existing directory that is named the same as the chosen name. If a matching directory is found, it is removed.
A new directory is created in /tmp that matches the chosen name of the package.
Next, a Payload directory is created inside of /tmp/package_name_here
The application zip archive's contents are extracted to /tmp/package_name_here/Payload
The installer package is built by pkgbuild using the application now stored in /tmp/package_name_here/Payload
The simple_package_creator_tempfile.zip file is removed from /tmp.
The finished installer package is stored in /tmp/package_name_here and the user is prompted that the process is finished.
Once the user is notified and clicks OK, a new Finder window opens for /tmp/package_name_here
Blog post: http://derflounder.wordpress.com/2014/04/29/simple-package-creator-app/