Created
August 19, 2013 23:09
-
-
Save geta6/6275269 to your computer and use it in GitHub Desktop.
node-webkit.appを設置して同じ階層にファイルを設置してこのシェルを叩くとビルドしてくれる
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/zsh | |
APP='' | |
for f in *; do | |
if [[ ${f##*.} =~ 'app' ]]; then | |
APP=$f | |
fi | |
done | |
if [[ -z $APP ]]; then | |
echo 'No app' | |
exit 1 | |
else | |
killall node-webkit | |
fi | |
zip $APP/Contents/Resources/app.nw `ls | grep -v $APP | tr '\n' ' '` -r | |
open $APP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment