hydro-uninstaller/hydro-uninstaller.sh

85 lines
3.1 KiB
Bash

# hey gang
main() {
clear
echo "\033[1;33mWarning\033[0m: This is an \033[1;31munofficial\033[0m application created by @2killq."
sleep 1
echo "Exit & Delete: Press 1"
echo "Continue: Press any key"
read -n 1 -s user_input
if [ "$user_input" == "1" ]; then
echo "Deleting Hydrogen Uninstaller"
rm -rf hydro-uninstaller.sh
exit 0
else
echo "Continuing..."
fi
clear
echo """
██╗ ██╗██╗ ██╗██████╗ ██████╗ ██████╗ ██████╗ ███████╗███╗ ██╗
██║ ██║╚██╗ ██╔╝██╔══██╗██╔══██╗██╔═══██╗██╔════╝ ██╔════╝████╗ ██║
███████║ ╚████╔╝ ██║ ██║██████╔╝██║ ██║██║ ███╗█████╗ ██╔██╗ ██║
██╔══██║ ╚██╔╝ ██║ ██║██╔══██╗██║ ██║██║ ██║██╔══╝ ██║╚██╗██║
██║ ██║ ██║ ██████╔╝██║ ██║╚██████╔╝╚██████╔╝███████╗██║ ╚████║
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝
Unofficial Uninstaller - Built by 2killq
"""
if [ -d "/Applications/Hydrogen.app" ]; then
echo "[-] Removing /Applications/Hydrogen.app..."
rm -rf "/Applications/Hydrogen.app"
else
echo "[!] Hydrogen Application not found!"
fi
if [ -d "/Users/$USER/Hydrogen" ]; then
echo "[-] Removing /Users/$USER/Hydrogen..."
rm -rf "/Users/$USER/Hydrogen"
else
echo "[!] Hydrogen Folder not found!"
fi
if [ -d "/Applications/Roblox.app" ]; then
echo "[-] Removing /Applications/Roblox.app..."
rm -rf "/Applications/Roblox.app"
else
echo "[!] Roblox app not found!"
fi
echo "[+] Installing jq (Helper Tool)"
cd /tmp
curl -sL -o jq "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-amd64"
chmod +x ./jq
echo "[+] Downloading Latest Roblox..."
[ -f ./RobloxPlayer.zip ] && rm ./RobloxPlayer.zip
local version=$(curl -s "https://clientsettingscdn.roblox.com/v2/client-version/MacPlayer" | ./jq -r ".clientVersionUpload")
curl -s "http://setup.rbxcdn.com/mac/$version-RobloxPlayer.zip" -o "./RobloxPlayer.zip"
echo "[-] Removing jq (Helper Tool)"
rm -rf ./jq
echo "[+] Installing Latest Roblox..."
unzip -qo "./RobloxPlayer.zip"
mv ./RobloxPlayer.app /Applications/Roblox.app
rm ./RobloxPlayer.zip
echo "[+] Uninstalled Hydrogen for macOS. Thanks for using Hydrogen!"
echo "[+] Script by @2killq"
echo "[-] Removing Hydro Uninstaller"
cd
rm -rf hydro-uninstaller.sh
exit
}
main