From f43d71ca3e6cef661e4f91fd57035231dd0b1858 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 17 Sep 2024 17:11:27 +0200 Subject: [PATCH] Added pacman script and config for x11 --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 138b286..c6ffe82 100755 --- a/install.sh +++ b/install.sh @@ -36,6 +36,12 @@ elif [ -x /usr/sbin/pkg ] && [ $(uname) == "FreeBSD" ]; then sudo pkg install -y python autoconf-2.72 automake bison \ py39-Jinja2 py39-lxml py39-matplotlib py39-future \ py39-pyserial py39-wxPython42 py39-wheel +#Installing dependencies for Arch Linux +elif [ -x /usr/bin/pacman ]; then + sudo pacman -Syu --noconfirm + sudo pacman -S --noconfirm base-devel yay gtk3 +# Installing python3.9 from AUR + yay -S --noconfirm python39 else echo "Unsupported linux distro." exit 1 @@ -83,6 +89,7 @@ then\n\ mv ./new_lib ./matiec/lib\n\ fi\n\ source \"$VENV_DIR/bin/activate\"\n\ +export GDK_BACKEND=x11\n\ ./.venv/bin/python3 ./editor/Beremiz.py" > openplc_editor.sh chmod +x ./openplc_editor.sh