diff options
Diffstat (limited to 'desktop.sh')
| -rwxr-xr-x | desktop.sh | 33 |
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/ |
