14 lines
293 B
Bash
14 lines
293 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
echo "Downloading newest package..."
|
||
|
curl -Lo /tmp/discord.deb "https://discord.com/api/download?platform=linux&format=deb"
|
||
|
cd /tmp
|
||
|
echo "Extracting package..."
|
||
|
xdeb discord.deb
|
||
|
echo "Installing package..."
|
||
|
sudo xbps-install -R /tmp/binpkgs discord
|
||
|
rm -rf /tmp/binpkgs
|
||
|
cd -
|