2018-07-27 16:08:14 +03:00
|
|
|
#!/bin/bash
|
2018-09-25 20:01:10 +03:00
|
|
|
RIOT_BRANCH=develop
|
2018-07-18 19:04:31 +03:00
|
|
|
|
2018-07-27 16:04:04 +03:00
|
|
|
BASE_DIR=$(readlink -f $(dirname $0))
|
2018-07-27 16:08:14 +03:00
|
|
|
if [ -d $BASE_DIR/riot-web ]; then
|
2018-08-14 13:53:16 +03:00
|
|
|
echo "riot is already installed"
|
|
|
|
exit
|
2018-07-27 15:00:01 +03:00
|
|
|
fi
|
|
|
|
|
2018-07-27 15:10:19 +03:00
|
|
|
cd $BASE_DIR
|
2018-07-18 18:52:51 +03:00
|
|
|
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
2018-07-30 14:40:23 +03:00
|
|
|
unzip -q riot.zip
|
2018-07-18 18:52:51 +03:00
|
|
|
rm riot.zip
|
|
|
|
mv riot-web-${RIOT_BRANCH} riot-web
|
2018-07-27 15:10:19 +03:00
|
|
|
cd riot-web
|
2018-07-18 18:52:51 +03:00
|
|
|
npm install
|
|
|
|
npm run build
|