Skip to content

Instantly share code, notes, and snippets.

Forked from mathiasbynens/appify
Last active April 10, 2020 08:55
What would you like to do?
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.1.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 "~/Applications/$ already exists :("
exit 1
mkdir -p "$DIR"
cp "$1" "$DIR/main.command"
chmod +x "$DIR/main.command"
echo "$PWD/$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment