Skip to content

Commit

Permalink
Update installer-linux.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
1ly4s0 committed Apr 15, 2024
1 parent ada1a95 commit f3cf016
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions installer-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ case $OPTION in
ARCH="armv7l"
;;
2)
ARCH="x64"
ARCH="x86_64"
;;
*)
echo "Opción inválida. Saliendo del script."
Expand All @@ -22,11 +22,13 @@ esac
mkdir -p BattlyLauncher

# Descargar el archivo tar.gz del último lanzamiento de Battly Launcher según la arquitectura seleccionada
URL="https://github.com/1ly4s0/battlylauncher/releases/latest/download/Battly-Launcher-linux-$ARCH.tar.gz"
URL="https://github.com/1ly4s0/battlylauncher/releases/latest/download/Battly-Launcher-linux-$ARCH.AppImage"
wget "$URL"

# Extraer el contenido en la carpeta BattlyLauncher
tar -zxvf "Battly-Launcher-linux-$ARCH.tar.gz" -C BattlyLauncher --strip-components=1
chmod +x "Battly-Launcher-linux-$ARCH.AppImage"

cp "Battly-Launcher-linux-$ARCH.AppImage" "BattlyLauncher.AppImage"

# Ejecutar el launcher desde la carpeta BattlyLauncher
./BattlyLauncher/battlylauncher
./BattlyLauncher.AppImage

0 comments on commit f3cf016

Please sign in to comment.