summaryrefslogtreecommitdiff
path: root/desktop.sh
blob: a572b4f08516fd38f59983111dd2c2e5ce988b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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!

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" .