This commit is contained in:
DarDarDoor 2022-11-06 21:07:35 +00:00 committed by GitHub
parent 122152b130
commit b9efa147f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 52 additions and 2 deletions

View File

@ -8,7 +8,7 @@ fi
if [ "$1" == "--version" ] if [ "$1" == "--version" ]
then then
echo "Wineorc v2.6 " echo "Wineorc v2.7 "
echo "License: MIT (see https://github.com/DarDarDoor/Wineorc/blob/main/LICENSE) " echo "License: MIT (see https://github.com/DarDarDoor/Wineorc/blob/main/LICENSE) "
exit exit
fi fi
@ -48,6 +48,11 @@ uninstall ()
rm $HOME/.itteblox -rf rm $HOME/.itteblox -rf
sudo rm /usr/share/applications/itteblox.desktop sudo rm /usr/share/applications/itteblox.desktop
fi fi
if [ $CURRENT == "Tadah" ]
then
rm $HOME/.tadah -rf
sudo rm /usr/share/applications/tadah.desktop
fi
sudo update-desktop-database sudo update-desktop-database
echo "Uninstall done. Run the script again if you'd like to reinstall. " echo "Uninstall done. Run the script again if you'd like to reinstall. "
exit exit
@ -59,6 +64,7 @@ then
echo "1. Crapblox " echo "1. Crapblox "
echo "2. Placeholder " echo "2. Placeholder "
echo "3. ItteBlox " echo "3. ItteBlox "
echo "4. Tadah "
read UNINSTALLOPT read UNINSTALLOPT
if [ $UNINSTALLOPT == "1" ] if [ $UNINSTALLOPT == "1" ]
then then
@ -75,6 +81,11 @@ then
CURRENT="ItteBlox" CURRENT="ItteBlox"
uninstall uninstall
fi fi
if [ $UNINSTALLOPT == "4" ]
then
CURRENT="Tadah"
uninstall
fi
fi fi
if [ "$1" == "dxvk" ] || [ "$2" == "dxvk" ] if [ "$1" == "dxvk" ] || [ "$2" == "dxvk" ]
@ -83,6 +94,7 @@ then
echo "1. ItteBlox wineprefix " echo "1. ItteBlox wineprefix "
echo "2. Crapblox wineprefix " echo "2. Crapblox wineprefix "
echo "3. Placeholder wineprefix " echo "3. Placeholder wineprefix "
echo "4. Tadah wineprefix "
read DXVKOPT read DXVKOPT
mkdir $HOME/tmp mkdir $HOME/tmp
cd $HOME/tmp cd $HOME/tmp
@ -101,6 +113,10 @@ then
then then
WINEPREFIX=$HOME/.placeholder ./setup_dxvk.sh install WINEPREFIX=$HOME/.placeholder ./setup_dxvk.sh install
fi fi
if [ $DXVKOPT == "4" ]
then
WINEPREFIX=$HOME/.tadah ./setup_dxvk.sh install
fi
cd $HOME cd $HOME
rm tmp -rf rm tmp -rf
echo "DXVK has been installed to selected wineprefix. " echo "DXVK has been installed to selected wineprefix. "
@ -243,7 +259,7 @@ uri ()
echo "Exec=env WINEPREFIX=$HOME/.placeholder wine $HOME/.placeholder/drive_c/users/$USER/AppData/Local/Placeholder/Versions/$PLACEHOLDERVER/PlaceholderPlayerLauncher.exe %u" >> placeholder.desktop echo "Exec=env WINEPREFIX=$HOME/.placeholder wine $HOME/.placeholder/drive_c/users/$USER/AppData/Local/Placeholder/Versions/$PLACEHOLDERVER/PlaceholderPlayerLauncher.exe %u" >> placeholder.desktop
echo "MimeType=x-scheme-handler/placeholder-player-placeholder16" >> placeholder.desktop echo "MimeType=x-scheme-handler/placeholder-player-placeholder16" >> placeholder.desktop
fi fi
if [ $CURRENT = "Crapblox" ] if [ $CURRENT == "Crapblox" ]
then then
touch crapblox.desktop touch crapblox.desktop
echo "[Desktop Entry]" >> crapblox.desktop echo "[Desktop Entry]" >> crapblox.desktop
@ -253,6 +269,16 @@ uri ()
echo "Exec=env WINEPREFIX=$HOME/.crapblox wine $HOME/.crapblox/drive_c/users/$USER/AppData/Local/CrapbloxLauncher.exe %U" >> crapblox.desktop echo "Exec=env WINEPREFIX=$HOME/.crapblox wine $HOME/.crapblox/drive_c/users/$USER/AppData/Local/CrapbloxLauncher.exe %U" >> crapblox.desktop
echo "MimeType=x-scheme-handler/crapblox2" >> crapblox.desktop echo "MimeType=x-scheme-handler/crapblox2" >> crapblox.desktop
fi fi
if [ $CURRENT == "Tadah" ]
then
touch tadah.desktop
echo "[Desktop Entry]" >> tadah.desktop
echo "Name=Tadah Player" >> tadah.desktop
echo "Comment=https://tadah.rocks/" >> tadah.desktop
echo "Type=Application" >> tadah.desktop
echo "Exec=env WINEPREFIX=$HOME/.tadah wine $HOME/.tadah/drive_c/users/$USER/AppData/Local/Tadah/2014/TadahLauncher.exe -token %u" >> tadah.desktop
echo "MimeType=x-scheme-handler/tadahfourteen" >> tadah.desktop
fi
sudo mv *.desktop /usr/share/applications sudo mv *.desktop /usr/share/applications
sudo update-desktop-database sudo update-desktop-database
} }
@ -307,10 +333,29 @@ crapblox ()
uri uri
} }
tadah ()
{
winecheck
othercheck
echo "$CURRENT is now being installed, please wait as this may take some time. "
sleep 3
mkdir $HOME/.tadah
mkdir $HOME/tmp
cd $HOME/tmp
WINEPREFIX=$HOME/.tadah winecfg -v win10
wget https://cdn.discordapp.com/attachments/1038634753689141259/1038707370219540480/TadahLauncher.exe
echo "You may need to close this with ctrl+c after it finishes. This may also give an error about uri - just ignore it. "
sleep 3
WINEPREFIX=$HOME/.tadah wine TadahLauncher.exe
echo "Tadah launcher probably hasn't closed by now - wait until it finishes and then close it. " # If ryelow is reading this - there's a deformity in the tadah launcher where it will close and then open again - this ofc messes up the install process with wine - pls fix ty !
uri
}
echo "Welcome to Wineorc, please select an revival to install. (see --help for other options) " echo "Welcome to Wineorc, please select an revival to install. (see --help for other options) "
echo "1. Crapblox " echo "1. Crapblox "
echo "2. Placeholder " echo "2. Placeholder "
echo "3. ItteBlox " echo "3. ItteBlox "
echo "4. Tadah "
read OPT read OPT
if [ $OPT == "1" ] if [ $OPT == "1" ]
then then
@ -327,6 +372,11 @@ then
CURRENT="ItteBlox" CURRENT="ItteBlox"
itteblox itteblox
fi fi
if [ $OPT == "4" ]
then
CURRENT="Tadah"
tadah
fi
wineserver -k wineserver -k
cd $HOME cd $HOME