|
|
|
@ -9,18 +9,18 @@ function error {
|
|
|
|
|
|
|
|
|
|
"${DIRECTORY}/pkg-install" "adb ffmpeg libsdl2-2.0-0 python3-pip python3-tk gcc git pkg-config meson ninja-build libavcodec-dev libavformat-dev libavutil-dev libsdl2-dev" "$(dirname "$0")" || exit 1
|
|
|
|
|
|
|
|
|
|
#SCRCPY
|
|
|
|
|
sudo rm -rf ~/scrcpy /usr/local/share/scrcpy ~/.local/share/applications/scrcpy.desktop 2>/dev/null
|
|
|
|
|
|
|
|
|
|
wget https://misapuntesde.com/rpi_share/scrcpy-1.13.tar.gz || error "Failed to download!"
|
|
|
|
|
tar -xf scrcpy-1.13.tar.gz || error "Failed to extract!"
|
|
|
|
|
rm scrcpy-1.13.tar.gz
|
|
|
|
|
|
|
|
|
|
ln -s /usr/bin/adb $HOME/scrcpy/
|
|
|
|
|
|
|
|
|
|
sudo mkdir -p /usr/local/share/scrcpy
|
|
|
|
|
sudo cp -af $HOME/scrcpy/scrcpy-server /usr/local/share/scrcpy/scrcpy-server
|
|
|
|
|
#END OF SCRCPY
|
|
|
|
|
if [ -e ~/scrcpy ] && [ -e /usr/bin/adb];then
|
|
|
|
|
#SCRCPY
|
|
|
|
|
wget https://misapuntesde.com/rpi_share/scrcpy-1.13.tar.gz || error "Failed to download!"
|
|
|
|
|
tar -xf scrcpy-1.13.tar.gz || error "Failed to extract!"
|
|
|
|
|
rm scrcpy-1.13.tar.gz
|
|
|
|
|
|
|
|
|
|
ln -s /usr/bin/adb $HOME/scrcpy/
|
|
|
|
|
|
|
|
|
|
sudo mkdir -p /usr/local/share/scrcpy
|
|
|
|
|
sudo cp -af $HOME/scrcpy/scrcpy-server /usr/local/share/scrcpy/scrcpy-server
|
|
|
|
|
#END OF SCRCPY
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
rm -rf ~/droidbuddy
|
|
|
|
|
git clone https://gitlab.com/gazlene/droidbuddy.git || error 'Could not clone AndroidBuddy repo!'
|
|
|
|
|