diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-09-08 11:34:23 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-09-08 11:34:23 +0200 |
| commit | 8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7 (patch) | |
| tree | 740c8bea00343904fade43592137928c1c600b25 /desktop.sh | |
| parent | 6f09aff97549fb9d2a3687781edf5d31dd766195 (diff) | |
| download | snap-8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7.tar.gz snap-8c4dbc73a29ad4f2b22ee9bc1129b19d9742a5f7.zip | |
rewrite scripts
Diffstat (limited to 'desktop.sh')
| -rwxr-xr-x | desktop.sh | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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/ |
