element-web/riot/install.sh

18 lines
364 B
Bash
Raw Normal View History

#!/bin/bash
RIOT_BRANCH=develop
BASE_DIR=$(readlink -f $(dirname $0))
if [ -d $BASE_DIR/riot-web ]; then
echo "riot is already installed"
exit
fi
2018-07-27 12:10:19 +00:00
cd $BASE_DIR
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
2018-07-30 11:40:23 +00:00
unzip -q riot.zip
rm riot.zip
mv riot-web-${RIOT_BRANCH} riot-web
2018-07-27 12:10:19 +00:00
cd riot-web
npm install
npm run build