Skip to content

Instantly share code, notes, and snippets.

@sub314xxl
Forked from lnoering/install-discord.bash
Created June 21, 2023 15:14
Show Gist options
  • Save sub314xxl/f609124d2dd82a9cfd76f621ae0fafd2 to your computer and use it in GitHub Desktop.
Save sub314xxl/f609124d2dd82a9cfd76f621ae0fafd2 to your computer and use it in GitHub Desktop.
Install discord (for the .tar.gz)
#!/usr/bin/env bash
cd ~/
mkdir -p ~/.local/bin
wget "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
tar -xvf discord.tar.gz -C ~/.local/bin
sudo ln -s ~/.local/bin/DiscordCanary/discord.png /usr/share/icons/discord.png
sudo ln -s ~/.local/bin/DiscordCanary/DiscordCanary /usr/bin
wget https://gist.githubusercontent.com/AdrianKoshka/a12ca0bfe2f334a9f208aff72f8738c3/raw/9d606ad7ce7cc1dd23f6a99993e2396540538a02/discord.desktop -O discord.desktop
mkdir -p ~/.local/share/applications/
mv ~/discord.desktop ~/.local/share/applications/
sudo ln -s ~/.local/share/applications/discord.desktop /usr/share/applications/discord.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment