Skip to content

Instantly share code, notes, and snippets.

@remi-dupre
Last active December 4, 2024 09:11
Show Gist options
  • Select an option

  • Save remi-dupre/e5340ca852ae974fdd5509d545b0b4ed to your computer and use it in GitHub Desktop.

Select an option

Save remi-dupre/e5340ca852ae974fdd5509d545b0b4ed to your computer and use it in GitHub Desktop.
Get Dofus running on the SteamDeck
#!/bin/bash
# Runs Ankama Launcher on a steam deck by using existing Proton runtime.
#
# /!\ You must ensure that you have a Proton instance installed through
# steam before running this script.
DOWNLOAD_URL="https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage"
STEAM_COMMON="/home/deck/.local/share/Steam/steamapps/common"
# Init compatdata dir
CURR_DIR=`dirname ${BASH_SOURCE[0]}`
CURR_DIR=`readlink -f $CURR_DIR`
INSTALL_DIR=$CURR_DIR/.ankama-launcher
if [ ! -d $INSTALL_DIR ]; then
echo "No install detected, downloading Ankama Launcher into $INSTALL_DIR"
mkdir $INSTALL_DIR
curl -o $INSTALL_DIR/launcher.AppImage $DOWNLOAD_URL
chmod +x $INSTALL_DIR/launcher.AppImage
mkdir "$INSTALL_DIR/compatdata"
else
echo "Detected Launcher install in $INSTALL_DIR"
fi
# Checking for Proton install
PROTON_PATH=`find $STEAM_COMMON -maxdepth 1 -name "Proton*" | sort -r | head -n 1`
if [ "$PROTON_PATH" = "" ]; then
echo "No Proton install detected in $STEAM_COMMON"
exit
fi
echo "Detected Proton install in $PROTON_PATH"
# Create fake Wine Binary
mkdir -p "$INSTALL_DIR/bin"
cat <<EOF > "$INSTALL_DIR/bin/wine"
#!/bin/bash
"$PROTON_PATH/proton" run "\$@"
EOF
chmod +x $INSTALL_DIR/bin/wine
# Replace Wine with Proton
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam"
export STEAM_COMPAT_DATA_PATH="$INSTALL_DIR/compatdata"
export PATH="$PATH:$INSTALL_DIR/bin"
# Run Ankama Launcher
$INSTALL_DIR/launcher.AppImage --no-sandbox
@Cdbeeef
Copy link

Cdbeeef commented Dec 3, 2024

Salut, j'ai essayé de faire comme indiquer dans certains des messages mais honnêtement je n'y comprend strictement rien.
J'ai essayé de lancer l'installateur du launcher mais rien ne marche.

Je n'ai trouvé aucun tuto débutant sur comment faire marcher ce truc, qqun de motivé pourrait m'expliquer brièvement du départ comment faire ? Que faire du script, comment launcher le .appimage etc svp ?

@remi-dupre
Copy link
Author

Hello !

A priori ce script ne sert désormais plus à rien. Ankama devrait déployer la 3.0 cet après midi, sur Linux le client est désormais natif et n'a donc plus besoin de Wine comme dépendance externe 🤞

@Cdbeeef
Copy link

Cdbeeef commented Dec 3, 2024

Ahhh mais c'est incroyable si c'est le cas, je vais rester patient alors et tester ça bientôt ! Merci de ta réponse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment