Skip to content

Instantly share code, notes, and snippets.

@MeexReay
Last active April 10, 2024 14:00
Show Gist options
  • Save MeexReay/6511d7a78490d977acc6ffcd52253298 to your computer and use it in GitHub Desktop.
Save MeexReay/6511d7a78490d977acc6ffcd52253298 to your computer and use it in GitHub Desktop.
Bash file that updates discord from xbps-src (VOID LINUX) (with vencord)
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then sudo bash update-discord.sh >&2; exit 1; fi
rm -f -r -v void-packages
git clone https://github.com/void-linux/void-packages.git
chmod -R -v 777 "void-packages"
cd void-packages
sudo -u user ./xbps-src binary-bootstrap
echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
sudo -u user ./xbps-src pkg discord
xbps-install --repository hostdir/binpkgs/nonfree discord --yes
sudo -u user set -- "XDG_CONFIG_HOME=$XDG_CONFIG_HOME"
sudo -u user curl -sS https://github.com/Vendicated/VencordInstaller/releases/latest/download/VencordInstallerCli-Linux \
--output "vencord-installer" \
--location
sudo -u user chmod +x "vencord-installer"
./vencord-installer -install=true -branch=auto
sudo -u user rm -f vencord-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment