Added finishing touches to install script, and added the desktop icon for the generated desktop file

This commit is contained in:
2026-02-12 23:34:39 +01:00
parent 5827558728
commit 2b758153a8
2 changed files with 25 additions and 2 deletions

View File

@@ -116,12 +116,13 @@ if [[ $GET_PROTON -eq 1 ]] then
exit 1
fi
fi
cd "$work_dir"
echo "Extracting $tarball_name to the Steam compatibility tools folder..."
tar -xf $tarball_name -C $STEAM_CUTOM_PROTON_PATH
echo "Done"
PROTON_PATH="$STEAM_CUTOM_PROTON_PATH/${$tarball_name/.tar.gz/}"
PROTON_PATH="$STEAM_CUTOM_PROTON_PATH/${tarball_name%.tar.gz}"
echo "Verifying existence of Proton"
if [[ -x "$PROTON_PATH/proton" ]] then
@@ -174,7 +175,29 @@ export DXVK_STATE_CACHE_PATH="$HOME/.cache/dxvk-cache-pool"
mkdir -p "$STEAM_COMPAT_DATA_PATH"
echo "Using $STEAM_COMPAT_DATA_PATH as proton prefix. This is where EA App will be installed to"
# TODO: Add the copying or generation of the .desktop file
echo ""
echo "Creating .desktop entry!"
echo "[Desktop Entry]
Comment[en_US]=Electronic Arts App
Comment=Electronic Arts App
Exec=env 'STEAM_COMPAT_DATA_PATH=$STEAM_COMPAT_DATA_PATH' 'STEAM_COMPAT_CLIENT_INSTALL_PATH=$STEAM_COMPAT_CLIENT_INSTALL_PATH' 'DXVK_STATE_CACHE_PATH=$DXVK_STATE_CACHE_PATH' '$PROTON_PATH/proton' 'C:\\Program Files\\Electronic Arts\\EA Desktop\\EA Desktop\\EADesktop.exe'
GenericName[en_US]=EA App
GenericName=
Icon=/home/$USER/Documents/scripts/EAApp/EAapp.ico
MimeType=
Name[en_US]=EA App
Name=EA App
Path="$STEAM_COMPAT_DATA_PATH/"
StartupNotify=true
StartupWMClass=EADesktop.exe
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Game
" > "~/.local/share/applications"
echo "Copying the desktop icon!"
cp "./EAapp.ico" "/home/$USER/Documents/scripts/EAApp/EAapp.ico"
sleep 1
echo "Starting proton in 5s, we might lose controll, if no application starts then we might have an issue, I trust you proton!..."
sleep 5