From 8407d10cae6c4dd8dbefba976ac370c467d0ed9f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 31 Dec 2021 14:25:13 +0000 Subject: [PATCH] Fix installer --- install.sh | 63 ++++++++++++++++---------------- {Utils => src/Utils}/__init__.py | 0 2 files changed, 32 insertions(+), 31 deletions(-) rename {Utils => src/Utils}/__init__.py (100%) diff --git a/install.sh b/install.sh index 57d80c8..1699dec 100755 --- a/install.sh +++ b/install.sh @@ -11,38 +11,39 @@ elif [[ "${1}" == "-h" ]]; then exit 0 fi - sudo apt install python3-pip \ - python3-bs4 \ - gir1.2-gstreamer-1.0 \ - gstreamer1.0-alsa \ - gstreamer1.0-clutter-3.0 \ - gstreamer1.0-gl \ - gstreamer1.0-gtk3 \ - gstreamer1.0-libav \ - gstreamer1.0-nice \ - gstreamer1.0-packagekit \ - gstreamer1.0-pipewire \ - gstreamer1.0-plugins-bad \ - gstreamer1.0-plugins-base \ - gstreamer1.0-plugins-base-apps \ - gstreamer1.0-plugins-good \ - gstreamer1.0-plugins-rtp \ - gstreamer1.0-plugins-ugly \ - gstreamer1.0-pulseaudio \ - gstreamer1.0-tools \ - gstreamer1.0-x \ - libgstreamer-gl1.0-0 \ - libgstreamer-plugins-bad1.0-0 \ - libgstreamer-plugins-base1.0-0 \ - libgstreamer-plugins-good1.0-0 \ - libgstreamer1.0-0 \ - python3-wxgtk-media4.0 \ - python3-wxgtk4.0 \ - python3-feedparser \ - youtube-dl +sudo apt install python3-pip \ + python3-bs4 \ + gir1.2-gstreamer-1.0 \ + gstreamer1.0-alsa \ + gstreamer1.0-clutter-3.0 \ + gstreamer1.0-gl \ + gstreamer1.0-gtk3 \ + gstreamer1.0-libav \ + gstreamer1.0-nice \ + gstreamer1.0-packagekit \ + gstreamer1.0-pipewire \ + gstreamer1.0-plugins-bad \ + gstreamer1.0-plugins-base \ + gstreamer1.0-plugins-base-apps \ + gstreamer1.0-plugins-good \ + gstreamer1.0-plugins-rtp \ + gstreamer1.0-plugins-ugly \ + gstreamer1.0-pulseaudio \ + gstreamer1.0-tools \ + gstreamer1.0-x \ + libgstreamer-gl1.0-0 \ + libgstreamer-plugins-bad1.0-0 \ + libgstreamer-plugins-base1.0-0 \ + libgstreamer1.0-0 \ + python3-wxgtk-media4.0 \ + python3-wxgtk4.0 \ + python3-feedparser \ + youtube-dl sudo pip3 install pychromecast sudo cp src/main.py /usr/local/bin/cast -sudo cp -a src/{Channel,ChannelProvider,Items} /usr/lib/python3.9/site-packages/ -sudo cp -a src/{Channel,ChannelProvider,Items} /usr/lib/python3.9/ +sudo chmod +x /usr/local/bin/cast +sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3/dist-packages/ +sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3.9/ +sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3.10/ sudo cp src/cast.desktop /usr/share/applications/ exit 0 diff --git a/Utils/__init__.py b/src/Utils/__init__.py similarity index 100% rename from Utils/__init__.py rename to src/Utils/__init__.py