-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README and script
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# discord-debian11 | ||
|
||
Convertir el deb de discord hecho para ubuntu a debian11 | ||
|
||
## Descripción | ||
|
||
Discord actualmente tiene un paquete creado para ubuntu, sin embargo, | ||
falla por dependencias al intentar instalarlo en debian 11. Esto se | ||
debe a que la liberia no tiene el mismo nombre bajo debian que en ubuntu, | ||
por lo que es necesario cambiar la lista de dependencias del paquete | ||
a instalar. | ||
|
||
## Basado en | ||
|
||
Este script está basado en los pasos indicados en el sitio web | ||
https://www.linuxcapable.com/how-to-install-discord-on-debian-11-bullseye | ||
|
||
## USO | ||
|
||
El uso del secript debe ser similar a lo siguente: | ||
|
||
```bash | ||
git clone https://gitlab.com/bash-script/discord-debian11.git | ||
cd discord-debian11 | ||
wget https://dl.discordapp.net/apps/linux/0.0.17/discord-0.0.17.deb | ||
sh debian11-discord.sh discord-0.0.17.deb | ||
``` | ||
|
||
donde 0.0.17 es la versión actual de discord, se ha probado con las versiones 0.0.16 y 0.0.17, pero se asume puede funcionar con una posterior. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# | ||
# Ubuntu package to debian 11 package and install | ||
# Base: https://www.linuxcapable.com/how-to-install-discord-on-debian-11-bullseye | ||
# | ||
# Roy Alvear <racl@gulix.cl> | ||
# | ||
if [ $# -eq 0 ] ; then | ||
echo "Error:\n\tUse: $0 discord-{VERSION}.deb" | ||
exit 0 | ||
fi | ||
discordDEB=$1 | ||
dpkg-deb -x $discordDEB unpack | ||
dpkg-deb --control $discordDEB | ||
mv DEBIAN unpack | ||
sed 's/libappindicator1/libayatana-appindicator1/' unpack/DEBIAN/control -i | ||
VERSION=$(grep 'Version' unpack/DEBIAN/control | awk -F: '{print $2}' | sed 's/ //g') | ||
FIXED=$(echo discord-fixed-${VERSION}.deb) | ||
dpkg -b unpack $FIXED | ||
rm -rf unpack | ||
sudo apt install ./$FIXED |