Monday, June 18, 2012

Make OSX application by Python script


#!/bin/bash
rm -r findertest.app
mkdir -p findertest.app/Contents/MacOS
cp -r src/* findertest.app/Contents/MacOS
mv findertest.app/Contents/MacOS/run.py findertest.app/Contents/MacOS/findertest
chmod +x findertest.app/Contents/MacOS/findertest
cur=`pwd`
echo $cur

open -a """$cur"/"findertest.app"""

No comments:

Post a Comment