aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2022-12-24 15:11:13 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2022-12-24 15:11:13 +0100
commitf30956a56f24d32235c6d6ba61380c804da0157b (patch)
tree78a425f3757319c3b0278362f10900279d75d1f9
parent4b2853d0a1c994602c6c62a047acee3c723c4e89 (diff)
downloadLuxcena-Neo-f30956a56f24d32235c6d6ba61380c804da0157b.tar.gz
Luxcena-Neo-f30956a56f24d32235c6d6ba61380c804da0157b.zip
Improve install scripts
-rwxr-xr-xbin/install.sh2
-rw-r--r--bin/postinstall.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/install.sh b/bin/install.sh
index 2c96658..93fd7a1 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -140,7 +140,7 @@ else
execCommand "apt -qy install nodejs"
fi
execCommand "apt -qy install jq curl"
-execCommand "apt -qy install python3-pip"
+execCommand "apt -qy install python3-pip python3-venv"
execCommand "pip3 install virtualenv"
# Get package
diff --git a/bin/postinstall.sh b/bin/postinstall.sh
index 85a77e7..fa10db9 100644
--- a/bin/postinstall.sh
+++ b/bin/postinstall.sh
@@ -8,6 +8,7 @@ header "Create python virtualenv and install dependencies"
execCommand "rm -rf $CWD/NeoRuntime/Runtime/venv"
execCommand "pip3 install virtualenv"
execCommand "virtualenv -p /usr/bin/python3 \"$CWD/NeoRuntime/Runtime/venv\""
+execCommand "source \"$CWD/NeoRuntime/Runtime/venv/bin/activate\" && pip install websockets" 1
header "Attempting to install the rpi_ws281x library, if you want to actually control some leds you need this. Don't worry if not."
-execCommand "source \"$CWD/NeoRuntime/Runtime/venv/bin/activate\" && pip install rpi_ws281r" 1
+execCommand "source \"$CWD/NeoRuntime/Runtime/venv/bin/activate\" && pip install rpi_ws281x" 1