1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00
miraclecast/install.sh
2023-09-22 14:34:23 +05:30

24 lines
No EOL
671 B
Bash
Executable file

#!/bin/bash
apt install cmake libglib2.0-dev libudev-dev libsystemd-dev libreadline-dev check libtool -y
apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-tools -y
rm -rf build/
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install
cd ..
echo "-- Installing: /root/.miraclecast"
cp res/.miraclecast /root/
echo "-- Installing: /usr/bin/run-vlc.sh"
cp res/run-vlc.sh /usr/bin/
echo "-- Installing: /etc/systemd/system/miracle-wifid.service"
cp systemd/system/miracle-wifid.service /etc/systemd/system/
echo "-- Installing: /etc/systemd/system/miracle-sink.service"
cp systemd/system/miracle-sink.service /etc/systemd/system/