Skip to content

Instantly share code, notes, and snippets.

@geta6
Created August 19, 2013 23:09
Show Gist options
  • Save geta6/6275269 to your computer and use it in GitHub Desktop.
Save geta6/6275269 to your computer and use it in GitHub Desktop.
node-webkit.appを設置して同じ階層にファイルを設置してこのシェルを叩くとビルドしてくれる
#!/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