summaryrefslogtreecommitdiff
path: root/desktop.sh
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-07 18:22:33 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-07 18:22:33 +0200
commit6f09aff97549fb9d2a3687781edf5d31dd766195 (patch)
tree7149e3ba69c2c00401e86417edd20d8e956e3d01 /desktop.sh
parent468fb94a5fb17218da16033e27e86c1219c2b3ec (diff)
downloadsnap-6f09aff97549fb9d2a3687781edf5d31dd766195.tar.gz
snap-6f09aff97549fb9d2a3687781edf5d31dd766195.zip
rewrite scripts
Diffstat (limited to 'desktop.sh')
-rwxr-xr-xdesktop.sh21
1 files changed, 17 insertions, 4 deletions
diff --git a/desktop.sh b/desktop.sh
index 46a7594..a572b4f 100755
--- a/desktop.sh
+++ b/desktop.sh
@@ -1,12 +1,25 @@
#!/bin/bash
+if [[ $1 = "" ]]
+then
+ echo "Usage: desktop.sh PLATFORM [BUILDSOURCE]"
+ exit 0
+fi
+
# 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!
-git clone https://github.com/Gubolin/snap.git
-cd "snap"
-git checkout mobileapp
-nwbuild -p win,osx,linux32,linux64 .
+if [[ $2 == "" ]]
+then
+ git clone https://github.com/Gubolin/snap.git www
+ cd www/
+ git checkout mobileapp
+else
+ cp -R "$2" www
+ cd www/
+fi
+
+nwbuild -p "$1" .