v1.1
This commit is contained in:
parent
3a0e07d4f1
commit
998ddc27a0
|
|
@ -1,82 +1,83 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Made by DarDarDar, 2022
|
#Made by DarDarDar, 2022
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]
|
echo "This is the Itteblox Installer helper, v1.1. "
|
||||||
then echo "Script must be ran as root. "
|
echo "Before installation begins, some dependencies need to be installed. If anything prompts for a password, enter it, and if there's a yes/no answer, enter yes. "
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "This is the Itteblox Installer helper, v1.0. "
|
|
||||||
echo "Before installation begins, some dependencies need to be installed. If anything prompts for a yes/no answer, enter yes. "
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
DISTRO=`cat /etc/*release | grep DISTRIB_ID | cut -d '=' -f 2` # gets distro name
|
DISTRO=`cat /etc/*release | grep DISTRIB_ID | cut -d '=' -f 2` # gets distro name
|
||||||
|
|
||||||
if [ $DISTRO == "Ubuntu" ] || [ $DISTRO == "LinuxMint" ] || [ $DISTRO == "Pop" ]
|
if [ $DISTRO == "Ubuntu" ] || [ $DISTRO == "LinuxMint" ] || [ $DISTRO == "Pop" ]
|
||||||
then
|
then
|
||||||
dpkg --add-architecture i386 # wine installation prep
|
sudo dpkg --add-architecture i386 # wine installation prep
|
||||||
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
||||||
mv winehq.key /usr/share/keyrings/winehq-archive.key
|
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
|
||||||
VERSION=`lsb_release --release | cut -f2`
|
VERSION=`lsb_release --release | cut -f2`
|
||||||
if [ $VERSION == "22.04" ]
|
if [ $VERSION == "22.04" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
||||||
mv winehq-jammy.sources /etc/apt/sources.list.d/
|
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "21.10" ]
|
if [ $VERSION == "21.10" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
|
||||||
mv winehq-impish.sources /etc/apt/sources.list.d/
|
sudo mv winehq-impish.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "20.04" ] || [ $VERSION == "20.3" ]
|
if [ $VERSION == "20.04" ] || [ $VERSION == "20.3" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
||||||
mv winehq-focal.sources /etc/apt/sources.list.d/
|
sudo mv winehq-focal.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "18.04" ] || [ $VERSION == "19.3" ]
|
if [ $VERSION == "18.04" ] || [ $VERSION == "19.3" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
|
||||||
mv winehq-bionic.sources /etc/apt/sources.list.d/
|
sudo mv winehq-bionic.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
apt update
|
sudo apt update
|
||||||
apt install --install-recommends winehq-staging wget unzip
|
sudo apt install --install-recommends winehq-staging wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "ManjaroLinux" ]
|
if [ $DISTRO == "ManjaroLinux" ]
|
||||||
then
|
then
|
||||||
echo "If this fails, then the multilib repo is disabled in /etc/pacman.conf. The dependencies cannot be installed if this is disabled, so please enable it. "
|
echo "If this fails, then the multilib repo is disabled in /etc/pacman.conf. The dependencies cannot be installed if this is disabled, so please enable it. "
|
||||||
sleep 3
|
sleep 3
|
||||||
pacman -S wine-staging wine-mono wget unzip
|
sudo pacman -S wine-staging wine-mono wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "Fedora" ]
|
if [ $DISTRO == "Fedora" ]
|
||||||
then
|
then
|
||||||
dnf install wine wget unzip
|
sudo dnf install wine wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "Gentoo" ]
|
if [ $DISTRO == "Gentoo" ]
|
||||||
then
|
then
|
||||||
emerge --ask virtual/wine-staging net-misc/wget unzip
|
sudo emerge --ask virtual/wine-staging net-misc/wget
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Please enter your system username exactly, otherwise this won't work. " ANSWER
|
|
||||||
|
|
||||||
echo "The URI for Itteblox will now be made. "
|
echo "The URI for Itteblox will now be made. "
|
||||||
touch /usr/share/applications/itteblox.desktop
|
touch itteblox.desktop
|
||||||
echo "[Desktop Entry]" >> /usr/share/applications/itteblox.desktop
|
echo "[Desktop Entry]" >> itteblox.desktop
|
||||||
echo "Name=Itteblox Player" >> /usr/share/applications/itteblox.desktop
|
echo "Name=Itteblox Player" >> itteblox.desktop
|
||||||
echo "Comment=https://ittblox.ml/" >> /usr/share/applications/itteblox.desktop
|
echo "Comment=https://ittblox.ml/" >> itteblox.desktop
|
||||||
echo "Type=Application" >> /usr/share/applications/itteblox.desktop
|
echo "Type=Application" >> itteblox.desktop
|
||||||
echo "Exec=wine "/home/$ANSWER/itteblox/ItteBloxLauncher.exe" %u" >> /usr/share/applications/itteblox.desktop
|
echo "Exec=wine $HOME/itteblox/ItteBloxLauncher.exe %u" >> itteblox.desktop
|
||||||
echo "MimeType=x-scheme-handler/itblox" >> /usr/share/applications/itteblox.desktop
|
echo "MimeType=x-scheme-handler/itblox" >> itteblox.desktop
|
||||||
update-desktop-database
|
sudo mv itteblox.desktop /usr/share/applications
|
||||||
|
sudo update-desktop-database
|
||||||
cat /usr/share/applications/itteblox.desktop
|
cat /usr/share/applications/itteblox.desktop
|
||||||
|
|
||||||
echo "The script will now download Itteblox. "
|
echo "winecfg will now open. Set the OS to be Windows 10. "
|
||||||
sleep 3
|
sleep 3
|
||||||
wget https://cdn.discordapp.com/attachments/876914292488826880/921519263108456448/itteblox.zip
|
winecfg
|
||||||
|
|
||||||
echo "What do to next: "
|
echo "The script will now install Itteblox. After you are done with ItteBloxURI.exe, press CTRL+C to close it. "
|
||||||
echo "The script has finished installing URI and has downloaded Itteblox but has not installed it. "
|
sleep 3
|
||||||
echo "To install it fully, mkdir itteblox (to store the files), unzip itteblox.zip into it, then wine ItteBloxURI.exe to finish the install. Then launch a game from the website and it should work! "
|
wget -nc https://cdn.discordapp.com/attachments/876914292488826880/921519263108456448/itteblox.zip
|
||||||
echo "For best compatibility, run winecfg and change the OS to be Windows 10. "
|
mkdir itteblox
|
||||||
echo "If you need support with anything, contact me on Discord. DarDarDar#3429. "
|
mv itteblox.zip itteblox
|
||||||
|
cd itteblox
|
||||||
|
unzip itteblox.zip
|
||||||
|
rm itteblox.zip
|
||||||
|
wine ItteBloxURI.exe
|
||||||
|
|
||||||
|
echo "The script has installed Itteblox. Play a game and it should work! "
|
||||||
|
echo "If there are any problems, DM me on Discord. DarDarDar#3429. "
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,82 +1,79 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Made by DarDarDar, 2022
|
#Made by DarDarDar, 2022
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]
|
echo "This is the Tadah Installer helper, v1.1. "
|
||||||
then echo "Script must be ran as root. "
|
echo "Before installation begins, some dependencies need to be installed. If anything prompts for a password, enter it, and if there's a yes/no answer, enter yes. "
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "This is the Tadah Installer helper, v1.0. "
|
|
||||||
echo "Before installation begins, some dependencies need to be installed. If anything prompts for a yes/no answer, enter yes. "
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
DISTRO=`cat /etc/*release | grep DISTRIB_ID | cut -d '=' -f 2` # gets distro name
|
DISTRO=`cat /etc/*release | grep DISTRIB_ID | cut -d '=' -f 2` # gets distro name
|
||||||
|
|
||||||
if [ $DISTRO == "Ubuntu" ] || [ $DISTRO == "LinuxMint" ] || [ $DISTRO == "Pop" ]
|
if [ $DISTRO == "Ubuntu" ] || [ $DISTRO == "LinuxMint" ] || [ $DISTRO == "Pop" ]
|
||||||
then
|
then
|
||||||
dpkg --add-architecture i386 # wine installation prep
|
sudo dpkg --add-architecture i386 # wine installation prep
|
||||||
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
||||||
mv winehq.key /usr/share/keyrings/winehq-archive.key
|
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
|
||||||
VERSION=`lsb_release --release | cut -f2`
|
VERSION=`lsb_release --release | cut -f2`
|
||||||
if [ $VERSION == "22.04" ]
|
if [ $VERSION == "22.04" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
||||||
mv winehq-jammy.sources /etc/apt/sources.list.d/
|
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "21.10" ]
|
if [ $VERSION == "21.10" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
|
||||||
mv winehq-impish.sources /etc/apt/sources.list.d/
|
sudo mv winehq-impish.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "20.04" ] || [ $VERSION == "20.3" ]
|
if [ $VERSION == "20.04" ] || [ $VERSION == "20.3" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
||||||
mv winehq-focal.sources /etc/apt/sources.list.d/
|
sudo mv winehq-focal.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
if [ $VERSION == "18.04" ] || [ $VERSION == "19.3" ]
|
if [ $VERSION == "18.04" ] || [ $VERSION == "19.3" ]
|
||||||
then
|
then
|
||||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
|
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
|
||||||
mv winehq-bionic.sources /etc/apt/sources.list.d/
|
sudo mv winehq-bionic.sources /etc/apt/sources.list.d/
|
||||||
fi
|
fi
|
||||||
apt update
|
sudo apt update
|
||||||
apt install --install-recommends winehq-staging wget
|
sudo apt install --install-recommends winehq-staging wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "ManjaroLinux" ]
|
if [ $DISTRO == "ManjaroLinux" ]
|
||||||
then
|
then
|
||||||
echo "If this fails, then the multilib repo is disabled in /etc/pacman.conf. The dependencies cannot be installed if this is disabled, so please enable it. "
|
echo "If this fails, then the multilib repo is disabled in /etc/pacman.conf. The dependencies cannot be installed if this is disabled, so please enable it. "
|
||||||
sleep 3
|
sleep 3
|
||||||
pacman -S wine-staging wine-mono wget
|
sudo pacman -S wine-staging wine-mono wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "Fedora" ]
|
if [ $DISTRO == "Fedora" ]
|
||||||
then
|
then
|
||||||
dnf install wine wget
|
sudo dnf install wine wget
|
||||||
fi
|
fi
|
||||||
if [ $DISTRO == "Gentoo" ]
|
if [ $DISTRO == "Gentoo" ]
|
||||||
then
|
then
|
||||||
emerge --ask virtual/wine-staging net-misc/wget
|
sudo emerge --ask virtual/wine-staging net-misc/wget
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Please enter your system username exactly, otherwise this won't work. " ANSWER
|
|
||||||
|
|
||||||
echo "The URI for Tadah will now be made. "
|
echo "The URI for Tadah will now be made. "
|
||||||
touch /usr/share/applications/tadah.desktop
|
touch tadah.desktop
|
||||||
echo "[Desktop Entry]" >> /usr/share/applications/tadah.desktop
|
echo "[Desktop Entry]" >> tadah.desktop
|
||||||
echo "Name=Tadah Player" >> /usr/share/applications/tadah.desktop
|
echo "Name=Tadah Player" >> tadah.desktop
|
||||||
echo "Comment=https://tadah.rocks/" >> /usr/share/applications/tadah.desktop
|
echo "Comment=https://tadah.rocks/" >> tadah.desktop
|
||||||
echo "Type=Application" >> /usr/share/applications/tadah.desktop
|
echo "Type=Application" >> tadah.desktop
|
||||||
echo "Exec=wine "/home/$ANSWER/.wine/drive_c/users/$ANSWER/AppData/Local/Tadah/2014/TadahLauncher.exe" "-token" %u" >> /usr/share/applications/tadah.desktop
|
echo "Exec=wine $HOME/.wine/drive_c/users/$USER/AppData/Local/Tadah/2014/TadahLauncher.exe -token %u" >> tadah.desktop
|
||||||
echo "MimeType=x-scheme-handler/tadahfourteen" >> /usr/share/applications/tadah.desktop
|
echo "MimeType=x-scheme-handler/tadahfourteen" >> tadah.desktop
|
||||||
update-desktop-database
|
sudo mv tadah.desktop /usr/share/applications
|
||||||
|
sudo update-desktop-database
|
||||||
cat /usr/share/applications/tadah.desktop
|
cat /usr/share/applications/tadah.desktop
|
||||||
|
|
||||||
echo "The script will now download Tadah."
|
echo "winecfg will now open. Set the OS to be Windows 10. "
|
||||||
sleep 3
|
sleep 3
|
||||||
wget https://cdn.discordapp.com/attachments/896484783180382222/962901711763144714/TadahFourteen.exe
|
winecfg
|
||||||
|
|
||||||
echo "What do to next: "
|
echo "The script will now install Tadah."
|
||||||
echo "The script has finished installing URI and has downloaded Tadah setup, but has not executed it. "
|
sleep 3
|
||||||
echo "To execute it, run wine TadahFourteen.exe as a non-root user. If it says that URI is not installed, ignore it because the script installed it for you. "
|
wget -nc https://cdn.discordapp.com/attachments/896484783180382222/962901711763144714/TadahFourteen.exe
|
||||||
echo "For best compatibility, run winecfg and change the OS to be Windows 10. "
|
wine TadahFourteen.exe
|
||||||
echo "If you need support with anything, contact me on Discord. DarDarDar#3429. "
|
|
||||||
|
echo "The script has installed Tadah. Play a game and it should work! "
|
||||||
|
echo "If there are any problems, DM me on Discord. DarDarDar#3429. "
|
||||||
|
rm TadahFourteen.exe
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue