Discord: use pkg-install

pull/906/head
Botspot 4 years ago
parent 69d5038e8d
commit 8ae2eeb3ff

@ -9,15 +9,11 @@ function error {
version='1.6.1'
#remove electron-discord-webapp if it still exists
if command -v webcord >/dev/null ;then
sudo apt purge webcord || error "failed to first uninstall electron-discord-webapp!"
fi
echo "Downloading Webcord..."
rm -f ~/webcord_${version}_armhf.deb
wget https://github.com/SpacingBat3/WebCord/releases/download/v${version}/webcord_${version}_armhf.deb
sudo apt -fy install ~/webcord_${version}_armhf.deb || error "Failed to install webcord deb!"
echo "Installing Webcord..."
"${DIRECTORY}/pkg-install" "$HOME/webcord_${version}_armhf.deb" "$(dirname "$0")" || error "Failed to install webcord deb!"
rm -f ~/webcord_${version}_armhf.deb

@ -9,15 +9,11 @@ function error {
version='1.6.1'
#remove electron-discord-webapp if it still exists
if command -v webcord >/dev/null ;then
sudo apt purge webcord || error "failed to first uninstall electron-discord-webapp!"
fi
echo "Downloading Webcord..."
rm -f ~/webcord_${version}_arm64.deb
wget https://github.com/SpacingBat3/WebCord/releases/download/v${version}/webcord_${version}_arm64.deb
sudo apt -fy install ~/webcord_${version}_arm64.deb || error "Failed to install webcord deb!"
echo "Installing Webcord..."
"${DIRECTORY}/pkg-install" "$HOME/webcord_${version}_arm64.deb" "$(dirname "$0")" || error "Failed to install webcord deb!"
rm -f ~/webcord_${version}_arm64.deb

@ -7,10 +7,8 @@ function error {
exit 1
}
if command -v webcord >/dev/null ;then
killall webcord &>/dev/null && echo "Closing Discord before uninstalling..."
"${DIRECTORY}/api" apt_lock_wait
sudo apt purge -y webcord || error "APT failed to purge webcord!"
fi
killall webcord &>/dev/null && echo "Closing Discord before uninstalling..."
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "APT failed to purge webcord!"
exit 0

Loading…
Cancel
Save