Created
January 30, 2014 08:52
-
-
Save thesabbir/8704823 to your computer and use it in GitHub Desktop.
Simple Command Line Helper to Package and Run Node Webkit App For OS X
This file contains 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 characters
#!/bin/sh | |
echo 'Packaging...' | |
cd $1/Contents/Resources/app/ | |
pwd | |
echo 'Zipping..' | |
zip -r app * | |
echo "Done.." | |
echo "Moving.." | |
mv app.zip ../app.nw | |
if [ -z "$2" ] | |
then | |
echo "Completed !" | |
else | |
open $1 | |
echo "App is running !" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment