2018-07-27 13:08:14 +00:00
|
|
|
#!/bin/bash
|
2018-09-25 17:45:08 +00:00
|
|
|
set -e
|
2018-09-25 17:01:10 +00:00
|
|
|
RIOT_BRANCH=develop
|
2018-07-18 16:04:31 +00:00
|
|
|
|
2018-09-25 17:45:08 +00:00
|
|
|
BASE_DIR=$(cd $(dirname $0) && pwd)
|
2018-07-27 13:08:14 +00:00
|
|
|
if [ -d $BASE_DIR/riot-web ]; then
|
2018-08-14 10:53:16 +00:00
|
|
|
echo "riot is already installed"
|
|
|
|
exit
|
2018-07-27 12:00:01 +00:00
|
|
|
fi
|
|
|
|
|
2018-09-25 17:45:08 +00:00
|
|
|
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
|
|
|
|
# but with support for multiple threads) into a virtualenv.
|
|
|
|
(
|
|
|
|
virtualenv $BASE_DIR/env
|
|
|
|
source $BASE_DIR/env/bin/activate
|
|
|
|
|
|
|
|
# Having been bitten by pip SSL fail too many times, I don't trust the existing pip
|
|
|
|
# to be able to --upgrade itself, so grab a new one fresh from source.
|
|
|
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
|
|
|
python get-pip.py
|
|
|
|
|
|
|
|
pip install ComplexHttpServer
|
|
|
|
|
|
|
|
deactivate
|
|
|
|
)
|
|
|
|
|
2018-07-27 12:10:19 +00:00
|
|
|
cd $BASE_DIR
|
2018-07-18 15:52:51 +00:00
|
|
|
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
|
2018-07-18 15:52:51 +00:00
|
|
|
rm riot.zip
|
|
|
|
mv riot-web-${RIOT_BRANCH} riot-web
|
2018-07-27 12:10:19 +00:00
|
|
|
cd riot-web
|
2019-04-03 14:19:56 +00:00
|
|
|
yarn install
|
|
|
|
yarn run build
|