diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-01-11 10:32:59 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-01-11 10:32:59 +0100 |
| commit | a94bd16d95f00fe3f8f27b425be3c7fc8cd3cd76 (patch) | |
| tree | bde44a9ec9442947c9b46cb6c0f4377eaadcb44e /desktop.sh | |
| parent | 8b7b751c04a0f41129a2d39de93c171e8e516c42 (diff) | |
| parent | ff3abf9d87a502cdf31a5f4abcbbf1826fd64fc9 (diff) | |
| download | snap-a94bd16d95f00fe3f8f27b425be3c7fc8cd3cd76.tar.gz snap-a94bd16d95f00fe3f8f27b425be3c7fc8cd3cd76.zip | |
Merge branch 'development' into gh-pages
Diffstat (limited to 'desktop.sh')
| -rwxr-xr-x | desktop.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/desktop.sh b/desktop.sh new file mode 100755 index 0000000..72b0786 --- /dev/null +++ b/desktop.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +if [[ "$snapsource" == "" ]] +then + export snapsource="https://github.com/Gubolin/snap.git" +fi + +if [[ $1 = "" ]] +then + echo "Usage: desktop.sh PLATFORM [BUILDSOURCE]" + exit 0 +fi + +scriptdir=$(readlink -e ".") + +# Requirements: +# git, zip, nodejs +# node-webkit (https://github.com/rogerwang/node-webkit), node-webkit-builder (https://github.com/mllrsohn/node-webkit-builder) + +builddir=$(mktemp -d) + +if [[ $2 == "" ]] +then + git clone "$snapsource" $builddir + cd $builddir/ + git checkout mobileapp +else + mv "$2" $builddir + cd $builddir/ +fi + +nwbuild -p "$1" . + +mv build/* $scriptdir/ |
