diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-01-11 10:32:15 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-01-11 10:32:15 +0100 |
| commit | ff3abf9d87a502cdf31a5f4abcbbf1826fd64fc9 (patch) | |
| tree | 43e0a2734bc16d5906decf05662d30436cb42313 /desktop.sh | |
| parent | 09d04ecd59279513015274a1386d345e3f8a1640 (diff) | |
| parent | 3c03814833a272b305cbac5ad7f70190ec2a8926 (diff) | |
| download | snap-ff3abf9d87a502cdf31a5f4abcbbf1826fd64fc9.tar.gz snap-ff3abf9d87a502cdf31a5f4abcbbf1826fd64fc9.zip | |
merge mobileapp
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/ |
