Skip to content

Instantly share code, notes, and snippets.

@deanshub
Created July 13, 2014 09:43
Show Gist options
  • Save deanshub/370ea376fadc3fe2061b to your computer and use it in GitHub Desktop.
Save deanshub/370ea376fadc3fe2061b to your computer and use it in GitHub Desktop.
Automatically build node webkit app
#!/bin/sh
rm u2bear.nw
pushd ../u2bear
zip -r ../u2bearbuilder/u2bear * -x docs/* images/* videos/* songs/*
popd
mv u2bear.zip u2bear.nw
cat nw.exe u2bear.nw>u2bear.exe
rm ship/u2bear.exe
mv u2bear.exe ship/u2bear.exe
rm ship/songs/* ship/videos/* ship/images/* ship/u2bear.zip
pushd ship/
zip -r u2bear *
cp -f u2bear.zip ~/chatapp/public/
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment