moved images and created update discord

This commit is contained in:
Blake Ridgway 2024-04-09 09:12:03 -05:00
parent 217bc1a2b9
commit 6d8ca32b5c
3 changed files with 34 additions and 1 deletions

View file

@ -2,4 +2,4 @@
**Collection of Scripts I use on Debian 12 (bookworm)**
![Bookworm Terminal Output](bookworm.webp)
![Bookworm Terminal Output](images/bookworm.webp)

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

33
update-discord.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run by root' >&2
exit 1
fi
# Retrive Discord
wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O discord.tar.gz
# Extract files to /opt directory
tar -xvf discord.tar.gz -C /opt/;rm discord.tar.gz
# Create symbolic link
ln -sf /opt/Discord/Discord /usr/bin/Discord
# adding desktop file
cat > ./temp << "EOF"
[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=/usr/bin/Discord
Icon=/opt/Discord/discord.png
Type=Application
Categories=Network;InstantMessaging;
Path=/usr/bin
EOF
cp ./temp /usr/share/applications/discord.desktop;rm ./temp