Skip to content

Instantly share code, notes, and snippets.

@justF-2077
Created March 23, 2019 14:03
Show Gist options
  • Save justF-2077/33fe99657c4ac04602a77aed580f7579 to your computer and use it in GitHub Desktop.
Save justF-2077/33fe99657c4ac04602a77aed580f7579 to your computer and use it in GitHub Desktop.
Automatically updates DiscordCanary by downloading the latest canary version and replacing the currently installed version with it.
notify-send "Updating Discord..."
# terminate Discord if it's currently running
pkill Discord*
wget "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz"
# remove currently installed version of Discord and replace it with the new downloaded one
rm -r DiscordCanary
tar -xf "canary?platform=linux&format=tar.gz"
rm "canary?platform=linux&format=tar.gz"
notify-send "Updating Discord to latest version has finished."
# make Discord exectuable and run it
cd /home/fabian/Discord/DiscordCanary;
chmod +x DiscordCanary
./DiscordCanary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment