-
-
Save nxpatterns/f07fadd1b9dcdd5d6b35d5ef66f6b62d to your computer and use it in GitHub Desktop.
Revisions
-
mathiasbynens revised this gist
Nov 29, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/bash if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF appify v3.0.1 for Mac OS X - http://mths.be/appify Creates the simplest possible Mac app from a shell script. Appify takes a shell script as its first argument: -
mathiasbynens revised this gist
Sep 17, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ exit; fi APPNAME=${2:-$(basename "$1" ".sh")} DIR="$APPNAME.app/Contents/MacOS" if [ -a "$APPNAME.app" ]; then echo "$PWD/$APPNAME.app already exists :(" exit 1 fi -
mathiasbynens revised this gist
Jul 19, 2011 . 1 changed file with 27 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,30 +1,33 @@ #!/bin/bash if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF appify v3.0.0 for Mac OS X - http://mths.be/appify Creates the simplest possible Mac app from a shell script. Appify takes a shell script as its first argument: `basename "$0"` my-script.sh Note that you cannot rename appified apps. If you want to give your app a custom name, use the second argument: `basename "$0"` my-script.sh "My App" Copyright (c) Thomas Aylott <http://subtlegradient.com/> Modified by Mathias Bynens <http://mathiasbynens.be/> EOF exit; fi APPNAME=${2:-$(basename "$1" ".sh")} DIR="$APPNAME.app/Contents/MacOS" if [[ -a "$APPNAME.app" ]]; then echo "$PWD/$APPNAME.app already exists :(" exit 1 fi mkdir -p "$DIR" cp "$1" "$DIR/$APPNAME" chmod +x "$DIR/$APPNAME" echo "$PWD/$APPNAME.app" -
mathiasbynens revised this gist
Nov 12, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # url : https://gist.github.com/672684 # version : 2.0.3 # name : appify # description : Create the simplest possible mac app from a shell script. # usage : cat my-script.sh | appify MyApp -
mathiasbynens revised this gist
Nov 12, 2010 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,6 +23,7 @@ chmod +x "$APPNAME.app/Contents/MacOS/$APPNAME" DONE=false until $DONE ;do read || DONE=true [[ ! $REPLY ]] && continue echo "$REPLY" >> "$APPNAME.app/Contents/MacOS/$APPNAME" done -
mathiasbynens revised this gist
Nov 12, 2010 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,4 @@ until $DONE ;do echo "$REPLY" >> "$APPNAME.app/Contents/MacOS/$APPNAME" done echo "$PWD/$APPNAME.app" -
mathiasbynens revised this gist
Nov 12, 2010 . 1 changed file with 8 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # url : https://gist.github.com/672684 # version : 2.0.2 # name : appify # description : Create the simplest possible mac app from a shell script. # usage : cat my-script.sh | appify MyApp @@ -20,8 +20,12 @@ mkdir -p "$APPNAME.app/Contents/MacOS" touch "$APPNAME.app/Contents/MacOS/$APPNAME" chmod +x "$APPNAME.app/Contents/MacOS/$APPNAME" DONE=false until $DONE ;do read || DONE=true echo "$REPLY" >> "$APPNAME.app/Contents/MacOS/$APPNAME" done echo "" >> "$APPNAME.app/Contents/MacOS/$APPNAME" echo "$PWD/$APPNAME.app" -
subtleGradient revised this gist
Nov 11, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # url : https://gist.github.com/672684 # version : 2.0.1 # name : appify # description : Create the simplest possible mac app from a shell script. # usage : cat my-script.sh | appify MyApp @@ -11,7 +11,7 @@ APPNAME=${1:-Untitled} if [[ -a "$APPNAME.app" ]]; then echo "App already exists :'(" >&2 echo "$PWD/$APPNAME.app" exit 1 fi -
subtleGradient revised this gist
Nov 11, 2010 . 1 changed file with 20 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,27 @@ #!/usr/bin/env bash # # url : https://gist.github.com/672684 # version : 2.0 # name : appify # description : Create the simplest possible mac app from a shell script. # usage : cat my-script.sh | appify MyApp # platform : Mac OS X # author : Thomas Aylott <[email protected]> APPNAME=${1:-Untitled} if [[ -a "$APPNAME.app" ]]; then echo "App already exists" >&2 echo "$PWD/$APPNAME.app" exit 1 fi mkdir -p "$APPNAME.app/Contents/MacOS" touch "$APPNAME.app/Contents/MacOS/$APPNAME" chmod +x "$APPNAME.app/Contents/MacOS/$APPNAME" while read SCRIPT_SOURCE_LINE; do echo "$SCRIPT_SOURCE_LINE" >> "$APPNAME.app/Contents/MacOS/$APPNAME" done echo "$PWD/$APPNAME.app" -
subtleGradient created this gist
Nov 11, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/usr/bin/env bash # Create a new super simple mac app # Platform: Mac OS X # Author: Thomas Aylott <[email protected]> APPNAME=${1:-Untitled} mkdir -p "$APPNAME.app/Contents/MacOS" cat > "$APPNAME.app/Contents/MacOS/$APPNAME" <<EOF #!/usr/bin/osascript say "Hello" EOF chmod +x "$APPNAME.app/Contents/MacOS/$APPNAME" echo "$PWD/$APPNAME.app"