Linux版(Ubuntu) Discord 自動更新

在Windows版的Discord只要按下載鈕重新開啟就可以進行更新
但Linux版的Discord就很麻煩,︁每次更新都要下載.deb,︁再用dpkg指令安裝

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

(image source)

我們可以使用腳本來解決這個問題,︁感謝這位作者的貢獻
https://github.com/FlorianHegele/AutoUpdateDiscord
指令步驟如下:

cd /opt
sudo git clone https://github.com/FlorianHegele/AutoUpdateDiscord.git
sudo chmod +x AutoUpdateDiscord/update_discord.sh
sudo cp AutoUpdateDiscord/update-discord.service /etc/systemd/system/
sudo systemctl enable update-discord.service
sudo systemctl restart update-discord.service

close discord update page and wait for one minute, then reopen discord
把更新畫面關掉 等一分鐘後 重新開啟discord