summaryrefslogtreecommitdiffstats
path: root/network/riot-web/riot-web.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/riot-web/riot-web.SlackBuild')
-rw-r--r--network/riot-web/riot-web.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/network/riot-web/riot-web.SlackBuild b/network/riot-web/riot-web.SlackBuild
index 7a1e9aff42..b3a2878311 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.1.0}
+VERSION=${VERSION:-1.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -75,8 +75,10 @@ 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" \
+echo -e "#!/bin/sh
+cd /opt/riot-web && python3 -m http.server 8000 --bind 127.0.0.1 &
+sleep 5
+$BROWSER http://localhost:8000" \
> $PKG/usr/bin/riot-web
chmod a+x $PKG/usr/bin/riot-web