A script to keep your Discord up-to-date (immediately)
Find a file
4aiman 1fa921d3f8
Update update_discord.sh
The logic is like this now:
- try to get a new version
- if it's available - unpack and launch it
- if it's not - launch the old one
- if the old one complains about needing an update - patch the `skipped_versions.txt` with the `needed version + 1` value and relaunch the script

The skipped versions file needed as Discord tends to upload broken versions and later rolling them back and forth several times. So instead we block the next version and only update if Discord complains about it. 

Probably the whole download first logic is not needed at this point, we can just react to stdout. IDC, TBH. Maybe'll fix later.
2025-07-29 13:22:20 +03:00
LICENSE Initial commit 2025-03-21 22:01:49 +03:00
readme.md Can skip versions now. First upload. 2025-03-21 22:07:36 +03:00
skipped_versions.txt Can skip versions now. First upload. 2025-03-21 22:07:36 +03:00
update_discord.sh Update update_discord.sh 2025-07-29 13:22:20 +03:00
version.txt Can skip versions now. First upload. 2025-03-21 22:07:36 +03:00

Discord updater

This script is designed to alleviate Discord updates on Linux systems.

Yes, there are repos, and snaps, and flatpacks... But fuck those.

Every time there's an update it takes some time for the app to be available.
And on Linux you'll be greeted by that freaking "good news, everyone" window saying there's a new version.

Well, if you know there is, then update. You know, like Telegram or any other normal software does!
Can't seem to be able to run the current version anyway (even though it clearly could run, Discord just hates its users).

So, the idea is quite simple: the script tries to get a new version and updates the app if succeeds.

Why text files?

  1. To keep track of current version. Script adds 1 to it and tries to update.
  2. Some versions are broken, and we need to skip them (at least for now), e.g. ver.99 wants to update to ver.88.
  • version.txt holds a single number - the currently installed version.
  • skipped_versions.txt holds several numbers each on a separate line - the versions updates should skip.