From 6dfd2361533b80b494750808be087f19068a1cff Mon Sep 17 00:00:00 2001
From: Patrick_Pluto <patrick_pluto@noreply.codeberg.org>
Date: Wed, 9 Oct 2024 13:32:08 +0200
Subject: [PATCH] dependencies for electron an python builds

---
 deployment_scripts/linux/root.sh | 2 +-
 deployment_scripts/linux/run.sh  | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/deployment_scripts/linux/root.sh b/deployment_scripts/linux/root.sh
index 6278166..e0f3af0 100644
--- a/deployment_scripts/linux/root.sh
+++ b/deployment_scripts/linux/root.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-apt install npm nodejs python3-full -y
+apt install npm nodejs python3-full ffmpeg libgtk-3-0 libnotify4 libgconf-2-4 libnss3 libxss1 libasound2 build-essential cmake -y
 if ! ollama; then
     curl -fsSL https://ollama.com/install.sh | sh
 fi
diff --git a/deployment_scripts/linux/run.sh b/deployment_scripts/linux/run.sh
index e1e490b..1220bae 100644
--- a/deployment_scripts/linux/run.sh
+++ b/deployment_scripts/linux/run.sh
@@ -1,8 +1,10 @@
 #!/bin/bash
 
 cd py
-python api.py &
+source venv/bin/activate
+python3 api.py &
 pid_py=$!
+cd ..
 
 npm start &
 pid_node=$!