Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
appify — create the simplest possible Mac app from a shell script
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X -
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"`
Note that you cannot rename appified apps. If you want to give your app
a custom name, use the second argument:
`basename "$0"` "My App"
Copyright (c) Thomas Aylott <>
Modified by Mathias Bynens <>
exit; fi
APPNAME=${2:-$(basename "$1" ".sh")}
if [ -a "$" ]; then
echo "$PWD/$ already exists :("
exit 1
mkdir -p "$DIR"
cp "$1" "$DIR/$APPNAME"
chmod +x "$DIR/$APPNAME"
echo "$PWD/$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.