Skip to content

Instantly share code, notes, and snippets.

@bramblex
bramblex / appify.sh
Created October 12, 2017 06:43 — forked from oubiwann/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
@bramblex
bramblex / appify.sh
Last active October 12, 2017 05:50 — forked from anonymous/appify.sh
#!/usr/bin/env bash
# appify your-shell-script.sh "Your App Name"
# https://mathiasbynens.be/notes/shell-script-mac-apps
APPNAME=${2:-$(basename "${1}" '.sh')};
DIR="${APPNAME}.app/Contents/MacOS";
if [ -a "${APPNAME}.app" ]; then
echo "${PWD}/${APPNAME}.app already exists :(";
exit 1;