forked from NekoMimiOfficial/VitaDockLite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
39 lines (29 loc) · 913 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
function getDistro() {
sh -c "cat /etc/*-release | grep ID_LIKE= | cut -f2- -d ="
}
distro=$(getDistro)
echo "Verifying Linux Distribution and trying to install dependencies..."
if [ $distro = "debian" ]
then
sudo apt update
sudo apt install -y python3 python3-pip mpv xwallpaper v4l-utils
#define variable to continue dependencies installation
continue=1
elif [ $distro = "arch" ]
then
sudo pacman -Syu --noconfirm python python-pip mpv xwallpaper v4l-utils
#define variable to continue dependencies installation
continue=1
else
echo "Linux Distribution not supported"
#define variable to cancell dependencies installation
continue=0
fi
if [ $continue -eq 1 ]
then
sudo -H pip3 install NekoMimi
echo "Setting VitaDockLite as an executable file..."
chmod +x bin/VDockLite
echo "All done! enjoy VitaDockLite <3"
fi