(feat): Fixed discord update

This commit is contained in:
Blake Ridgway 2024-04-25 19:56:57 -05:00
parent 032501e80f
commit 67b528014d
No known key found for this signature in database
GPG key ID: DA918D5A122547AD
3 changed files with 42 additions and 1 deletions

BIN
discord.tar.gz Normal file

Binary file not shown.

41
installer.sh Executable file
View file

@ -0,0 +1,41 @@
#!/bin/bash
# Check to see if Zenity is installed
if ! command -v zenity &> /dev/null; then
echo "Zenity is not installed. Please install it to use this script"
exit 1
fi
# Display dialog to selection installation options
option=$(zenity --list \
--title="Installer Options" \
--text="Select one of the Options:" \
--columm="Option" --column="Description" \
"Option 1" "Install Discord" \
"Option 2" "Update Discord" \
"Option 3" "Configure dotfiles" \
"Option 4" "Cancel")
# Check against selection
case "$option" in
"Option 1")
echo "Installing Discord..."
# Add discord install script
;;
"Option 2")
echo "Updating Discord..."
# Add Discord Update script
;;
"Option 3")
echo "Configuring dotfiles..."
# Add dotfiles script
;;
"Option 4")
echo "Exiting..."
;;
*)
echo "Invalid option. Exiting..."
;;
esac

View file

@ -11,4 +11,4 @@ wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O discord.
# Extract files to /opt directory
tar -xvf discord.tar.gz -C /opt/discord.tar.gz
tar -xvf discord.tar.gz -C /opt/Discord