diff --git a/discord.tar.gz b/discord.tar.gz new file mode 100644 index 0000000..0b7f06b Binary files /dev/null and b/discord.tar.gz differ diff --git a/installer.sh b/installer.sh new file mode 100755 index 0000000..f8eae81 --- /dev/null +++ b/installer.sh @@ -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 diff --git a/update-discord.sh b/update-discord.sh index 37347f6..8274c90 100755 --- a/update-discord.sh +++ b/update-discord.sh @@ -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