diff options
author | mdrights <mdrights@tutanota.de> | 2020-01-25 12:53:59 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-26 06:55:46 +0700 |
commit | 4c0c1697bc66704edaaf5253672c77207cbc2759 (patch) | |
tree | 5e20c68ae4c4de27eb6740df580403e72473c223 /network/riot-web | |
parent | 0ab03b384996d7bdfe25829fd7ac1e1a71b4aa47 (diff) |
network/riot-web: Updated for version 1.5.7
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/riot-web')
-rw-r--r-- | network/riot-web/README | 10 | ||||
-rw-r--r-- | network/riot-web/doinst.sh | 3 | ||||
-rw-r--r-- | network/riot-web/riot-web.SlackBuild | 10 | ||||
-rw-r--r-- | network/riot-web/riot-web.info | 6 |
4 files changed, 20 insertions, 9 deletions
diff --git a/network/riot-web/README b/network/riot-web/README index 20d910bc48b8..9b9a6376e223 100644 --- a/network/riot-web/README +++ b/network/riot-web/README @@ -19,7 +19,13 @@ Now with end-to-end encryption using the Olm and Megolm cryptographic ratchets conversation. This is a packaging of the pre-built released version of Riot (on Github). -You should use your favourite web browser to enjoy it. Type your browser name -before before run this script: + +Riot-web now is needed to run under a web server(e.g. NGINX). +After building, a start script (in /usr/bin) is set to invoke a simple +web server (a Python built-in module) listening at port 8000, and then start a +web browser to access it at localhost:8000. Feel free to change these +settings. + +Type your favourite browser name before running this script, e.g. BROWSER=firefox ./riot-web.Slackbuild diff --git a/network/riot-web/doinst.sh b/network/riot-web/doinst.sh index 65c7e2eeb9aa..19926c6b1f0b 100644 --- a/network/riot-web/doinst.sh +++ b/network/riot-web/doinst.sh @@ -7,3 +7,6 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi + +# Riot-web should have a real config to work. +ln -sf /opt/riot-web/config.sample.json /opt/riot-web/config.json diff --git a/network/riot-web/riot-web.SlackBuild b/network/riot-web/riot-web.SlackBuild index ef5f0a3b221a..a14a65d62627 100644 --- a/network/riot-web/riot-web.SlackBuild +++ b/network/riot-web/riot-web.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=riot-web PKGNAM=riot -VERSION=${VERSION:-1.2.1} +VERSION=${VERSION:-1.5.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,9 +74,11 @@ mkdir -p $PKG/opt mv ${PKGNAM}-v${VERSION} $PKG/opt/${PRGNAM} # Create a script to let the browser to launch the app. -mkdir -p $PKG/usr/bin -echo -e "#!/bin/bash -$BROWSER /opt/${PRGNAM}/index.html" \ +mkdir -p $PKG/usr/local/bin +echo -e "#!/bin/sh +cd /opt/riot-web && python -m SimpleHTTPServer 8000 & +sleep 5 +$BROWSER http://localhost:8000" \ > $PKG/usr/bin/riot-web chmod a+x $PKG/usr/bin/riot-web diff --git a/network/riot-web/riot-web.info b/network/riot-web/riot-web.info index 54c730ca8888..efe3e91668d1 100644 --- a/network/riot-web/riot-web.info +++ b/network/riot-web/riot-web.info @@ -1,8 +1,8 @@ PRGNAM="riot-web" -VERSION="1.2.1" +VERSION="1.5.7" HOMEPAGE="https://riot.im/" -DOWNLOAD="https://github.com/vector-im/riot-web/releases/download/v1.2.1/riot-v1.2.1.tar.gz" -MD5SUM="391793b36e176a626e78b30b9e70256c" +DOWNLOAD="https://github.com/vector-im/riot-web/releases/download/v1.5.7/riot-v1.5.7.tar.gz" +MD5SUM="26cd12c57a8e6c3ef9230efb7b95cd5b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |