Skip to content

Instantly share code, notes, and snippets.

Елизаров Роман Русланович fantomnotabene

  • Moscow
Block or report user

Report or block fantomnotabene

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View scriptToApp
#!/bin/bash
if [ -z "$1" ]; then exit; fi
nameOfScript=`withoutPath=${1##*/};withoutExtension=${withoutPath%.*};echo $withoutExtension` #cuz it can be '*.sh', '*.py', '*.pl', '*.rb' and other files
folderOfScript="$nameOfScript.app/Contents/MacOS"
mkdir -p "$folderOfScript"
cp "$1" "$folderOfScript/$nameOfScript"
chmod +x "$folderOfScript/$nameOfScript"
echo "Seems like success."
You can’t perform that action at this time.