Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
appify. Create the simplest possible mac app from a shell script
#!/usr/bin/env bash
# url :
# version : 2.0.2
# name : appify
# description : Create the simplest possible mac app from a shell script.
# usage : cat | appify MyApp
# platform : Mac OS X
# author : Thomas Aylott <>
if [[ -a "$" ]]; then
echo "App already exists :'(" >&2
echo "$PWD/$"
exit 1
mkdir -p "$"
touch "$$APPNAME"
chmod +x "$$APPNAME"
until $DONE ;do
read || DONE=true
echo "$REPLY" >> "$$APPNAME"
echo "$PWD/$"
Copy link

mathiasbynens commented Jul 19, 2011

Hey @subtleGradient, I just rewrote appify so it uses cp which avoids a lot of problems. Check it out:

Copy link

andreif commented Jun 6, 2015

It wouldn't work on OS X 10.10 until I added $ containing at least <plist><dict></dict></plist>

Copy link

phasstw commented Aug 9, 2016

I created an app, but it won't execute when I double-click on the bundle. It is just a #!/bin/sh script that has a echo "hello world" statement in it for testing purposes. Can someone give me some guidance on how to get my app to run from clicking on the bundle? Appify did not create a Info.plist file for me, maybe this is the issue? What needs to be in that file? Thanks!

Copy link

oubiwann commented Dec 9, 2016

I forked this and added option-parsing, overridable icons file, and some other bits:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment