-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
48 lines (40 loc) · 2.04 KB
/
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
40
41
42
43
44
45
46
47
48
#!/bin/bash
setfont lat2-16.psfu
clear
echo "┏━┓┏━┳━━━┳━━━┳┓┏┓┏┳━━━┳━━━┳┓╋┏┓╋╋┏━━┓┏┓╋┏┳━━┳┓╋╋┏━━━┳━━━┳━━━┓"
echo "┃┃┗┛┃┃┏━━┫┏━┓┃┃┃┃┃┃┏━┓┃┏━┓┃┃╋┃┃╋╋┃┏┓┃┃┃╋┃┣┫┣┫┃╋╋┗┓┏┓┃┏━━┫┏━┓┃"
echo "┃┏┓┏┓┃┗━━┫┃╋┃┃┃┃┃┃┃┗━┛┃┃╋┗┫┗━┛┃╋╋┃┗┛┗┫┃╋┃┃┃┃┃┃╋╋╋┃┃┃┃┗━━┫┗━┛┃"
echo "┃┃┃┃┃┃┏━━┫┃╋┃┃┗┛┗┛┃┏┓┏┫┃╋┏┫┏━┓┃╋╋┃┏━┓┃┃╋┃┃┃┃┃┃╋┏┓┃┃┃┃┏━━┫┏┓┏┛"
echo "┃┃┃┃┃┃┗━━┫┗━┛┣┓┏┓┏┫┃┃┗┫┗━┛┃┃╋┃┃╋╋┃┗━┛┃┗━┛┣┫┣┫┗━┛┣┛┗┛┃┗━━┫┃┃┗┓"
echo "┗┛┗┛┗┻━━━┻━━━┛┗┛┗┛┗┛┗━┻━━━┻┛╋┗┛╋╋┗━━━┻━━━┻━━┻━━━┻━━━┻━━━┻┛┗━┛"
echo
echo "Starting pre-install..." && sleep 2
##==> Installing basic dependencies for pacman
#######################################################
dependencies=(python python-pip)
for package in "${dependencies[@]}"; do
if ! pacman -Q $package &> /dev/null; then
sudo pacman -S --needed $package
fi
done
#######################################################
##==> Installing python and dependencies for it
#######################################################
declare -a packages=(
"inquirer"
"loguru"
"psutil"
"gputil"
"pyamdgpuinfo"
"pyyaml"
"pillow"
)
for package in "${packages[@]}"; do
if ! pip show $package &> /dev/null; then
pip install $package --break-system-packages
fi
done
#######################################################
##==> Building the system
#######################################################
python Builder/install.py