Command line that compiles a script into an OSX application bundle.
ported from http://git.abackstrom.com/appify.git
$ npm install -g vectorsize/appify
To compile using the defaults simply type
$ appify ScriptName
This will create an ScriptName.app
application next to your ScriptName
.
If there is an icon file called main.icns
the app will be bundled with that icon.
please note that the icon must be a valid OSX icns
resource
You can run de command for a given directory:
$ appify .
The script will look for a package.json
file in the specified path and the default options are overwritten.
The default package.json
looks like this:
{
"name": "#{ScriptName}",
"version": "1.0.0",
"icon": "main.icns",
"main": "#{ScriptName}"
}
This means that you can also specify a version for your Application bundle, a different icns
resource and a different application name.