diff --git a/EAapp.ico b/EAapp.ico new file mode 100644 index 0000000..7edd204 Binary files /dev/null and b/EAapp.ico differ diff --git a/install.sh b/install.sh index 9165bd6..29c36a4 100755 --- a/install.sh +++ b/install.sh @@ -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