mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-29 22:10:57 +08:00
18 lines
363 B
Bash
Executable File
18 lines
363 B
Bash
Executable File
#!/bin/bash
|
|
RIOT_BRANCH=master
|
|
|
|
BASE_DIR=$(readlink -f $(dirname $0))
|
|
if [ -d $BASE_DIR/riot-web ]; then
|
|
echo "riot is already installed"
|
|
exit
|
|
fi
|
|
|
|
cd $BASE_DIR
|
|
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
|
unzip -q riot.zip
|
|
rm riot.zip
|
|
mv riot-web-${RIOT_BRANCH} riot-web
|
|
cd riot-web
|
|
npm install
|
|
npm run build
|