2018-07-18 17:52:51 +02:00
|
|
|
RIOT_BRANCH=master
|
2018-07-18 18:04:31 +02:00
|
|
|
|
|
|
|
BASE_DIR=$(realpath $(dirname $0))
|
2018-07-27 14:00:01 +02:00
|
|
|
if [[ -d $BASE_DIR/riot-web ]]; then
|
|
|
|
echo "riot is already installed"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
pushd $BASE_DIR > /dev/null
|
2018-07-18 17:52:51 +02:00
|
|
|
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
|
|
|
unzip riot.zip
|
|
|
|
rm riot.zip
|
|
|
|
mv riot-web-${RIOT_BRANCH} riot-web
|
2018-07-20 18:50:05 +02:00
|
|
|
cp config-template/config.json riot-web/
|
2018-07-27 14:00:01 +02:00
|
|
|
pushd riot-web > /dev/null
|
2018-07-18 17:52:51 +02:00
|
|
|
npm install
|
|
|
|
npm run build
|
2018-07-27 14:00:01 +02:00
|
|
|
popd > /dev/null
|
|
|
|
popd > /dev/null
|