Last active
June 19, 2024 21:25
-
-
Save remi-dupre/e5340ca852ae974fdd5509d545b0b4ed to your computer and use it in GitHub Desktop.
Get Dofus running on the SteamDeck
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Je laisse ça ici, supprimer le repertoire cinematics résou le soucis. Je peux lancer Dofus avec l'appimage et la version flatpak de steam