Last active
February 5, 2025 15:44
-
-
Save KLanausse/b0ba7e212f4cea6d725eac6be5c2d880 to your computer and use it in GitHub Desktop.
Install Script For ORRH On Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
prefix=$HOME/.local/share/wineprefixes/OnlyRetroRobloxHere | |
#text colours | |
Green='\033[1;32m' | |
Red='\033[1;31m' | |
Yellow='\033[1;33m' | |
Blue='\033[1;34m' | |
Reset='\033[m' | |
echo " " | |
if [ -f /etc/debian_version ]; then | |
distro_guess="Debian" | |
distro_check="dpkg -l" | |
distro_install="apt install" | |
distro_update=" sudo apt update" | |
fi | |
if [ -f /etc/redhat-release ]; then | |
distro_guess="Fedora" | |
distro_check="rpm -q" | |
distro_install="yum install" | |
distro_update="dnf update && dnf upgrade" | |
fi | |
if [ -f /etc/SuSE-release ]; then | |
distro_guess="OpenSUSE" | |
distro_check="zypper search -i" | |
distro_install="zypper install" | |
distro_update="zypper update" | |
fi | |
if [ -f /etc/arch-release ]; then | |
distro_guess="Arch" | |
distro_check="pacman -Qs" | |
distro_install="pacman -S" | |
distro_update="pacman -Syu" | |
fi | |
if test -z $distro_guess; then | |
echo -e "${Red}This Linux distro is not supported sorry. Now aborting." | |
exit | |
fi | |
# Now Start The Script | |
echo -e "${Yellow}Checking if your system is supported..." | |
sleep 3 | |
# Now Check The Cpu | |
if ! lscpu | grep avx > /dev/null; | |
then | |
echo -e "${Red}Cpu Does Not Have AVX For Roblox GUI" | |
fi | |
if lscpu | grep avx > /dev/null; | |
then | |
echo -e "${Green}CPU supported!" | |
fi | |
# check glibc is 2.31 or newer | |
if ldd --version | grep "2\\.30]\|2\\.2" > /dev/null; | |
then | |
echo -e "${Red}Error: Your system is unsupported. Please update to glibc 2.31 or greater. Press return to continue.${Reset}" | |
read -p " " | |
exit | |
fi | |
echo -e "${Green}Glic 2.31 or newer is installed!" | |
echo -e "${Green}${distro_guess} is supported!" | |
echo -e "${Yellow}Just a quick warning! I recommend installing ORRH 1.0.5.0 due to a change in 1.0.6.0 that started causing issues with loading assets." | |
echo -e "${Blue}Press Enter To Install" | |
read -p "" | |
echo -e "${Yellow}Checking if the required packages are installed...${Reset}" | |
# install "lib32-gnutls" if missing. | |
if [ $distro_guess = "Arch" ] && ! $distro_check lib32-gnutls > /dev/null; then | |
sudo $distro_install lib32-gnutls; | |
fi | |
# install "lib32-alsa-plugins" if missing. | |
if [ $distro_guess = "Arch" ] && ! $distro_check lib32-alsa-plugins > /dev/null; then | |
sudo $distro_install lib32-alsa-plugins; | |
fi | |
# install "lib32-libpulse" if missing. | |
if [ $distro_guess = "Arch" ] && ! $distro_check lib32-libpulse > /dev/null; then | |
sudo $distro_install lib32-libpulse; | |
fi | |
# install "lib32-openal" if missing. | |
if [ $distro_guess = "Arch" ] && ! $distro_check lib32-openal > /dev/null; then | |
sudo $distro_install lib32-openal; | |
fi | |
# install "xdg-utils" if missing. | |
if ! $distro_check xdg-utils > /dev/null; then | |
sudo $distro_install xdg-utils; | |
fi | |
if ! $distro_check 7z > /dev/null && ! $distro_check p7zip > /dev/null; then | |
sudo $distro_install 7z && sudo $distro_install p7zip; | |
fi | |
#install wine | |
if ! $distro_check wine > /dev/null && ! $distro_check wine-core > /dev/null; then | |
sudo dpkg --add-architecture i386 | |
sudo $distro_install wine | |
fi | |
echo "" | |
#Check for an existing install | |
if [ -d "$prefix" ]; then | |
echo -e "${Yellow}You seem to already have OnlyRetroRobloxHere installed." | |
echo -e "${Yellow}Proceeding will completely wipe your previous install!${Reset}" | |
read -p "Are you sure you want to continue? (y/N) " doReinstall | |
case $doReinstall in | |
[Yy]* ) echo "Reinstalling..." && rm -rf $prefix && rm ~/.local/share/applications/OnlyRetroRobloxHere.desktop && rm ~/Desktop/OnlyRetroRobloxHere.desktop;; | |
[Nn]* ) exit 1;; | |
* ) exit 1;; | |
esac | |
fi | |
orrhArchive=$(find . -maxdepth 1 -name 'OnlyRetroRobloxHere-v*.7z' -type f | tail -n 1) | |
if ((${#orrhArchive} <= 3)); then | |
echo "${Red}OnlyRetroRobloxHere-vX.X.X.X.7z was not found!" | |
echo "${Yellow}Make sure OnlyRetroRobloxHere-vX.X.X.X.7z is in the same folder as the script!${Reset}" | |
exit 1 | |
fi | |
WINEPREFIX=$prefix winetricks -q wininet winhttp mfc80 mfc90 gdiplus wsh56 urlmon pptfonts corefonts dxvk dotnetdesktop6 ie8 | |
WINEPREFIX=$prefix winetricks wininet=builtin winihttp=native | |
#Install dotnet 6 redist | |
wget https://download.visualstudio.microsoft.com/download/pr/c4b74fa0-cea3-49f4-8765-ce1dd12d37c8/6f0c2d210864d89743fc7211c2f48edd/aspnetcore-runtime-6.0.33-win-x64.exe | |
wget https://download.visualstudio.microsoft.com/download/pr/3c01bbe6-a49d-468f-8335-f195588f582f/b935469e8480e611eae4d79b2e51965e/dotnet-runtime-6.0.33-win-x64.exe | |
WINEPREFIX=$prefix wine aspnetcore-runtime-6.0.33-win-x64.exe /q | |
WINEPREFIX=$prefix wine dotnet-runtime-6.0.33-win-x64.exe /q | |
7z x -t7z $orrhArchive -oOnlyRetroRobloxHere/ | |
mv OnlyRetroRobloxHere/ $prefix/drive_c/ProgramData/ | |
#Cleanup | |
rm aspnetcore-runtime-6.0.33-win-x64.exe | |
rm dotnet-runtime-6.0.33-win-x64.exe | |
#Icon | |
wget https://gist.github.com/assets/66651363/58d0c0b6-18ac-44b8-a390-c6237237975c -O $prefix/drive_c/ProgramData/OnlyRetroRobloxHere/Icon.png | |
#Create Desktop Shortcut | |
echo "[Desktop Entry]" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Name=OnlyRetroRobloxHere" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Comment=${orrhArchive:2:-3}" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Icon=$prefix/drive_c/ProgramData/OnlyRetroRobloxHere/Icon.png" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Exec=env WINEPREFIX=\"$HOME/.local/share/wineprefixes/OnlyRetroRobloxHere\" wine C:\\\\\\\\ProgramData\\\\\\\\OnlyRetroRobloxHere\\\\\\\\OnlyRetroRobloxHere.exe" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Type=Application" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Categories=Games;" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "StartupNotify=true" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "Path=$HOME/.local/share/wineprefixes/OnlyRetroRobloxHere/drive_c/ProgramData/OnlyRetroRobloxHere" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
echo "StartupWMClass=OnlyRetroRobloxHere.exe" >> ~/.local/share/applications/OnlyRetroRobloxHere.desktop | |
cp ~/.local/share/applications/OnlyRetroRobloxHere.desktop ~/Desktop/OnlyRetroRobloxHere.desktop | |
#Open | |
WINEPREFIX=$prefix wine C:\\\\\\\\ProgramData\\\\\\\\OnlyRetroRobloxHere\\\\\\\\OnlyRetroRobloxHere.exe |
Update: Fixed 2012L+ issues
Update for wine 10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another install script by me https://github.com/Twig6943/OnlyRetroRobloxHere_Linux/