summaryrefslogtreecommitdiff
path: root/desktop.sh
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-08 11:34:23 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-08 11:34:23 +0200
commit8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7 (patch)
tree740c8bea00343904fade43592137928c1c600b25 /desktop.sh
parent6f09aff97549fb9d2a3687781edf5d31dd766195 (diff)
downloadsnap-8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7.tar.gz
snap-8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7.zip
rewrite scripts
Diffstat (limited to 'desktop.sh')
-rwxr-xr-xdesktop.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/desktop.sh b/desktop.sh
index a572b4f..8b0e21c 100755
--- a/desktop.sh
+++ b/desktop.sh
@@ -6,20 +6,27 @@ then
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)
-# binaries are in snap/build/Snap!
+builddir=$(mktemp -d)
if [[ $2 == "" ]]
then
- git clone https://github.com/Gubolin/snap.git www
- cd www/
+ git clone https://github.com/Gubolin/snap.git $builddir
+ cd $builddir/
git checkout mobileapp
else
- cp -R "$2" www
- cd www/
+ mv "$2" $builddir
+ cd $builddir/
fi
+# remove mobile config
+rm config.xml
+
nwbuild -p "$1" .
+
+mv build/* $scriptdir/