cast/install.sh
Micke Nordin 3604862b84
Kill YouTube Support and switch to VLC for playback
With this commit only SVT Play is currently supported. I feel that
TubeFeeder is the best choice for YouTube on mobile linux and
maintenance burden will be less if I don't compete with an allready
nice app :)

I might add support for other providers down the line if they are not
supported in TubeFeeder. See:

* https://github.com/Tubefeeder/TubeFeeder

for more information about TubeFeeder

I am also switching out gstreamer in favour of VLC with this commit.
2022-05-27 16:43:41 +02:00

21 lines
764 B
Bash
Executable file

#!/usr/bin/env bash
if [[ "${1}" == "-u" ]]; then
echo "Uninstalling cast"
sudo rm /usr/local/bin/cast /usr/share/applications/cast.desktop
echo "If you wish you can now manually remove the dependencies"
exit 0
elif [[ "${1}" == "-h" ]]; then
echo "Usage: $0 [-u|-h]
-h show this message
-u uninstall cast"
exit 0
fi
sudo apt install $(cat dpkg.lst | tr '\n' ' ')
sudo cp src/main.py /usr/local/bin/cast
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