-
Notifications
You must be signed in to change notification settings - Fork 17
/
gameready-arch.sh
84 lines (69 loc) · 3.78 KB
/
gameready-arch.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# COLOR VARIABLES
RED="\e[31m"
ENDCOLOR="\e[0m"
# CHECK IF ZENITY IS INSTALLED
package="zenity";
check="$(sudo pacman -Qs --color always "${package}" | grep "local" | grep "${package} ")";
if [ -n "${check}" ] ; then
echo "${package} is installed";
elif [ -z "${check}" ] ; then
sudo pacman -Syu --noconfirm zenity
fi;
# SHOW INITIAL DIALOGS
zenity --info --text="Script made by Nayam Amarshe for the Lunix YouTube channel" --no-wrap
zenity --warning --width=100 --height=100 --no-wrap --title="Before Starting the Installation" --text="You might see a text asking for your password, just enter your password in the terminal.\\n The password is for installing system libraries, so root access is required by GameReady.\\n When you enter your password, do not worry if it doesn't show you what you typed, it's totally normal."
# ENABLE PARALLEL DOWNLOADS
sudo sed -i "s/^#ParallelDownloads = 5$/ParallelDownloads = 10/" /etc/pacman.conf
# INSTALL PARU
echo -e "\n\n${RED}<-- Installing PARU -->${ENDCOLOR}"
sudo pacman -S --needed --noconfirm base-devel
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin || {
echo "Failed at command cd paru"
exit 1
}
makepkg --noconfirm -si
cd .. || {
echo "Failed at command cd in paru"
exit 1
}
rm -rf paru-bin
# INSTALL WINE
echo -e "\n\n${RED}<-- Installing WINE -->${ENDCOLOR}"
sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
paru -S --noconfirm wine wine-mono
# INSTALL WINETRICKS
echo -e "\n\n${RED}<-- Installing Winetricks -->${ENDCOLOR}"
paru -S --noconfirm winetricks
# WINETRICS SELF UPDATE
zenity --warning --width 300 --title="Winetricks Self Update" --text="Winetricks is now installed but to keep it on latest version at all times,\\n we'll ask Winetricks to self-update. Just press Y and press enter."
sudo winetricks --self-update
# INSTALL LUTRIS
echo -e "\n\n${RED}<-- Installing Lutris -->${ENDCOLOR}"
paru -S --noconfirm lutris
# INSTALL GAMEMODE
echo -e "\n\n${RED}<-- Installing Gamemode -->${ENDCOLOR}"
paru -S --noconfirm gamemode lib32-gamemode
# INSTALL XANMOD KERNEL
if zenity --question --width 300 --title="Install Xanmod Kernel?" --text="THIS STEP IS TOTALLY OPTIONAL! Your current kernel is $(uname -r). We're going to install the Xanmod kernel.\\nXanmod is for enabling extra performance patches for kernels but might not contain certain proprietary drivers.\\nDo you want to install Xanmod?"; then
{
echo -e "\n\n${RED}<-- Installing Xanmod Kernel -->${ENDCOLOR}"
sudo pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key FBA220DFC880C036
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
echo "[chaotic-aur]" | sudo tee -a /etc/pacman.conf
echo "Include = /etc/pacman.d/chaotic-mirrorlist" | sudo tee -a /etc/pacman.conf
sudo pacman -Syu --noconfirm
sudo pacman -S linux-xanmod linux-xanmod-headers --noconfirm
sudo grub-mkconfig -o /boot/grub/grub.cfg
zenity --info --width 200 --title="Success" --text="Xanmod kernel installed!"
}
fi;
# INSTALL WINETRICKS DEPENDENCIES
zenity --warning --title="Alright Listen Up" --width 300 --text="Now we're going to install dependencies for WINE like DirectX, Visual C++, DotNet and more.\\n Winetricks will try to install these dependencies for you, so it'll take some time.\\ nDo not panic if you don't receive visual feedback, it'll take time."
# SET WINDOWS VERSION
winetricks win10
echo -e "\n\n${RED}<-- Installing Important WINE Helpers -->${ENDCOLOR}"
winetricks -q -v d3dx10 d3dx9 dotnet35 dotnet40 dotnet45 dotnet48 dxvk vcrun2008 vcrun2010 vcrun2012 vcrun2019 vcrun6sp6
zenity --info --title="Success" --text="All done! Enjoy!"