summaryrefslogtreecommitdiff
path: root/desktop.sh
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-04 17:25:47 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-04 17:25:47 +0100
commitc82cf0fa106ef9ea589962f59c784cda7a7a17f8 (patch)
treeddf8283dffca49e25f81dcc53aed1c67a37d605e /desktop.sh
parentf7dcf37f972c1b7ed6d63e350b3bc5ba118b0fd4 (diff)
downloadsnap-yow-c82cf0fa106ef9ea589962f59c784cda7a7a17f8.tar.gz
snap-yow-c82cf0fa106ef9ea589962f59c784cda7a7a17f8.zip
add mobile version
Diffstat (limited to 'desktop.sh')
-rwxr-xr-xdesktop.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/desktop.sh b/desktop.sh
new file mode 100755
index 0000000..f2ecb09
--- /dev/null
+++ b/desktop.sh
@@ -0,0 +1,33 @@
+#!/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/
+else
+ mv "$2" $builddir
+ cd $builddir/
+fi
+
+nwbuild -p "$1" .
+
+mv build/* $scriptdir/