From c82cf0fa106ef9ea589962f59c784cda7a7a17f8 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Wed, 4 Mar 2015 17:25:47 +0100 Subject: add mobile version --- desktop.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 desktop.sh (limited to 'desktop.sh') 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/ -- cgit v1.3.1