Last active
December 4, 2024 09:11
-
-
Save remi-dupre/e5340ca852ae974fdd5509d545b0b4ed to your computer and use it in GitHub Desktop.
Get Dofus running on the SteamDeck
This file contains hidden or 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
#!/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 |
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
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 🤞