Commit fcc20622 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Add PortNAME_vars

parent 1887b03f
...@@ -13,8 +13,8 @@ if [ -x "`which wrestool 2>/dev/null`" ]; then ...@@ -13,8 +13,8 @@ if [ -x "`which wrestool 2>/dev/null`" ]; then
cp -f "${PORTPROTON_EXE}.ico" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.ico" cp -f "${PORTPROTON_EXE}.ico" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.ico"
fi fi
PORTPROTON_CMD="" PORTPROTON_CMD=""
#PORTPROTON_CMD=$(zenity --entry --text "${sc_cmd}") PORTPROTON_CMD=$(zenity --entry --text "${sc_cmd}")
#if [ $? -eq 1 ];then exit 1; fi if [ $? -eq 1 ];then exit 1; fi
start_settings=`zenity --title "${ss_title}" --text "${ss_text}" --list --radiolist \ start_settings=`zenity --title "${ss_title}" --text "${ss_text}" --list --radiolist \
--column="${inst_set}" --column "${ss_ver}" --column "${ss_dr}" --width=500 --height=220 \ --column="${inst_set}" --column "${ss_ver}" --column "${ss_dr}" --width=500 --height=220 \
TRUE "DXVK" "${ss_ogl_3}" \ TRUE "DXVK" "${ss_ogl_3}" \
...@@ -55,7 +55,7 @@ start_settings=`zenity --title "${ss_title}" --text "${ss_text}" --list --radio ...@@ -55,7 +55,7 @@ start_settings=`zenity --title "${ss_title}" --text "${ss_text}" --list --radio
name_desktop="${PORTPROTON_NAME}" name_desktop="${PORTPROTON_NAME}"
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Name=${PORTPROTON_NAME}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "Name=${PORTPROTON_NAME}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Exec="env dxvk_ogl_var=$dxvk_ogl_var PATH_TO_GAME=\""$PORTPROTON_PATH"\" sh \"${PORT_SCRIPTS_PATH}/start\" \"${PORTPROTON_EXE}\" ${PORTPROTON_CMD}"" \ echo "Exec="env dxvk_ogl_var=$dxvk_ogl_var launch_parameters="${PORTPROTON_CMD}" PATH_TO_GAME=\""$PORTPROTON_PATH"\" sh \"${PORT_SCRIPTS_PATH}/start\" \"${PORTPROTON_EXE}\" "" \
>> "${PORT_WINE_PATH}/${name_desktop}.desktop" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Type=Application" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "Type=Application" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Categories=Game" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "Categories=Game" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
......
...@@ -60,14 +60,14 @@ export PW_TERM="" ...@@ -60,14 +60,14 @@ export PW_TERM=""
if [ "${PW_USE_TERMINAL}" = "1" ]; then if [ "${PW_USE_TERMINAL}" = "1" ]; then
if [ -x "`which konsole 2>/dev/null`" ]; then if [ -x "`which konsole 2>/dev/null`" ]; then
export PW_TERM="konsole -e" export PW_TERM="konsole -e"
elif [ -x "`which xfce4-terminal 2>/dev/null`" ]; then
export PW_TERM="xfce4-terminal -x"
elif [ -x "`which xterm 2>/dev/null`" ]; then elif [ -x "`which xterm 2>/dev/null`" ]; then
export PW_TERM="xterm -e" export PW_TERM="xterm -e"
elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then
export PW_TERM="gnome-terminal -- $SHELL -c" export PW_TERM="gnome-terminal -- $SHELL -c"
elif [ -x "`which lxterminal 2>/dev/null`" ]; then elif [ -x "`which lxterminal 2>/dev/null`" ]; then
export PW_TERM="lxterminal -e" export PW_TERM="lxterminal -e"
# elif [ -x "`which xfce4-terminal 2>/dev/null`" ]; then
# export PW_TERM="xfce4-terminal -x" #test
fi fi
fi fi
######################################################################## ########################################################################
......
...@@ -6,9 +6,7 @@ export gamedir="Battle.net" ...@@ -6,9 +6,7 @@ export gamedir="Battle.net"
export gamename="Battle.net" export gamename="Battle.net"
export portname="PortBattleNET" export portname="PortBattleNET"
export porturl="http://portwine-linux.ru/battle-net-linux/" export porturl="http://portwine-linux.ru/battle-net-linux/"
if [ ! -z ${gamedir} ]; then export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
fi
export gamestart="${PATH_TO_GAME}/Battle.net Launcher.exe" export gamestart="${PATH_TO_GAME}/Battle.net Launcher.exe"
######################################################################## ########################################################################
#export MESA_GL_VERSION_OVERRIDE=4.4COMPAT #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
......
...@@ -10,31 +10,32 @@ export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${ga ...@@ -10,31 +10,32 @@ export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${ga
export gamestart="${PATH_TO_GAME}/EpicGamesLauncher.exe" export gamestart="${PATH_TO_GAME}/EpicGamesLauncher.exe"
######################################################################## ########################################################################
#export MESA_GL_VERSION_OVERRIDE=4.4COMPAT #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
export STAGING_SHARED_MEMORY=1
export PROTON_FORCE_LARGE_ADDRESS_AWARE=1
export PROTON_USE_SECCOMP=0
export WINEDLLOVERRIDES="winemenubuilder.exe=d" export WINEDLLOVERRIDES="winemenubuilder.exe=d"
export WINEDEBUG="-all" export STAGING_SHARED_MEMORY=1
export PORTWINE_ACO=0 export PW_LOG=0 # Enable debug mode fo terminal
export PW_NO_VR=1 # Disabled VR support
export PW_NO_D3D9=0 # Disable d3d9.dll
export PW_NO_D3D10=0 # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9
export PW_NO_D3D11=0 # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9
export PW_NO_D3D12=0 # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9
export PW_NO_FSYNC=0 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
export PW_NO_ESYNC=0 # Do not use eventfd-based in-process synchronization primitives
export PW_DXVK_ASYNC=0
export PW_DXGI_NATIVE=0
export PW_USE_TERMINAL=0
export PW_OLD_GL_STRING=0
export PW_NO_WINEMFPLAY=0
export PW_NVAPI_DISABLE=1
export PW_NO_WRITE_WATCH=0 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
export PW_HIDE_NVIDIA_GPU=0
export PW_FORCE_USE_VSYNC=2 # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
export PW_WINEDBG_DISABLE=1
export PW_PULSE_LOWLATENCY=0
export PW_FORCE_DISABLED_GAMEMOD=0 # Force disabele gamemod
export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
######################################################################## ########################################################################
ADD_IN_START_PORTWINE () ADD_IN_START_PORTWINE ()
{ {
if [ "${var_dxvk_on}" -eq "0" ]
then ###OPENGL###
export PROTON_USE_WINED3D=1
export PW_DXGI_FOR_VKD3D=1
export PROTON_NO_D9VK=0
export PROTON_NO_D3D11=0
export PROTON_NO_D3D10=0
export PROTON_OLD_GL_STRING=0
else ###DXVK###
export PROTON_USE_WINED3D=0
export PW_DXGI_FOR_VKD3D=0
export PROTON_NO_D9VK=0
export PROTON_NO_D3D11=0
export PROTON_NO_D3D10=0
export DXVK_ASYNC=0
fi
export launch_parameters="-opengl -SkipBuildPatchPrereq" export launch_parameters="-opengl -SkipBuildPatchPrereq"
cd "${PATH_TO_GAME}" cd "${PATH_TO_GAME}"
} }
......
...@@ -6,9 +6,7 @@ export portname="PortGoG" ...@@ -6,9 +6,7 @@ export portname="PortGoG"
export gamename="GOG Galaxy" export gamename="GOG Galaxy"
export gamedir="GOG Galaxy" export gamedir="GOG Galaxy"
export porturl="http://portwine-linux.ru/" export porturl="http://portwine-linux.ru/"
if [ ! -z "${gamedir}" ]; then export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
fi
export gamestart="${PATH_TO_GAME}/GalaxyClient.exe" export gamestart="${PATH_TO_GAME}/GalaxyClient.exe"
######################################################################## ########################################################################
export MESA_GL_VERSION_OVERRIDE=4.4COMPAT export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
......
...@@ -6,9 +6,7 @@ export portname="PortMailRu" ...@@ -6,9 +6,7 @@ export portname="PortMailRu"
export gamename="GameMailRu" export gamename="GameMailRu"
export gamedir="GameCenter" export gamedir="GameCenter"
export porturl="http://portwine-linux.ru/mail-ru-linux" export porturl="http://portwine-linux.ru/mail-ru-linux"
if [ ! -z "${gamedir}" ]; then export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Local Settings/Application Data/${gamedir}"
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Local Settings/Application Data/${gamedir}"
fi
export gamestart="${PATH_TO_GAME}/GameCenter.exe" export gamestart="${PATH_TO_GAME}/GameCenter.exe"
######################################################################## ########################################################################
export MESA_GL_VERSION_OVERRIDE=4.4COMPAT export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
......
#!/bin/bash
# License GPL
# Author: Tergoev M.A.
########################################################################
export portname="PortOrigin"
export gamename="Origin"
export gamedir="Origin"
if [ ! -z "${gamedir}" ]; then
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
fi
export gamestart="Origin.exe"
export porturl="http://portwine-linux.ru/origin-linux/"
########################################################################
#export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
export STAGING_SHARED_MEMORY=1
export PW_LOG=0 # Enable debug mode fo terminal
export PW_NO_VR=1 # Disabled VR support
export PW_NO_D3D9=0 # Disable d3d9.dll
export PW_NO_D3D10=0 # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9
export PW_NO_D3D11=0 # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9
export PW_NO_D3D12=0 # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9
export PW_NO_FSYNC=0 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
export PW_NO_ESYNC=0 # Do not use eventfd-based in-process synchronization primitives
export PW_DXVK_ASYNC=0
export PW_DXGI_NATIVE=0
export PW_USE_TERMINAL=0
export PW_OLD_GL_STRING=0
export PW_NO_WINEMFPLAY=0
export PW_NVAPI_DISABLE=1
export PW_NO_WRITE_WATCH=0 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
export PW_HIDE_NVIDIA_GPU=0
export PW_FORCE_USE_VSYNC=2 # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
export PW_WINEDBG_DISABLE=1
export PW_PULSE_LOWLATENCY=0
export PW_FORCE_DISABLED_GAMEMOD=0 # Force disabele gamemod
export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
########################################################################
ADD_IN_START_PORTWINE ()
{
export launch_parameters=""
cd "${PATH_TO_GAME}"
sed -i 's%key="EnableIgo" value="true"%key="EnableIgo" value="false"%g' "${WINEPREFIX}/drive_c/users/steamuser/Application Data/Origin/local_"*".xml"
}
########################################################################
ADD_IN_STOP_PORTWINE ()
{
echo " "
}
########################################################################
ADD_IN_POST_INSTALL ()
{
`zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1
}
...@@ -37,7 +37,6 @@ export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE ...@@ -37,7 +37,6 @@ export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE
######################################################################## ########################################################################
ADD_IN_START_PORTWINE () ADD_IN_START_PORTWINE ()
{ {
export launch_parameters=""
cd "${PATH_TO_GAME}" cd "${PATH_TO_GAME}"
} }
######################################################################## ########################################################################
......
#!/bin/bash
# License GPL
# Author: Tergoev M.A.
########################################################################
export portname=PortUplay
export gamename=Uplay
export gamedir="Ubisoft/Ubisoft Game Launcher"
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
export gamestart="${PATH_TO_GAME}/Uplay.exe"
export porturl="https://portwine-linux.ru/uplay-linux/"
########################################################################
#export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
export STAGING_SHARED_MEMORY=1
export PW_LOG=0 # Enable debug mode fo terminal
export PW_NO_VR=1 # Disabled VR support
export PW_NO_D3D9=0 # Disable d3d9.dll
export PW_NO_D3D10=0 # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9
export PW_NO_D3D11=0 # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9
export PW_NO_D3D12=0 # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9
export PW_NO_FSYNC=0 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
export PW_NO_ESYNC=0 # Do not use eventfd-based in-process synchronization primitives
export PW_DXVK_ASYNC=0
export PW_DXGI_NATIVE=0
export PW_USE_TERMINAL=0
export PW_OLD_GL_STRING=0
export PW_NO_WINEMFPLAY=0
export PW_NVAPI_DISABLE=1
export PW_NO_WRITE_WATCH=0 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
export PW_HIDE_NVIDIA_GPU=0
export PW_FORCE_USE_VSYNC=2 # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
export PW_WINEDBG_DISABLE=1
export PW_PULSE_LOWLATENCY=0
export PW_FORCE_DISABLED_GAMEMOD=0 # Force disabele gamemod
export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
########################################################################
ADD_IN_START_PORTWINE ()
{
export launch_parameters=""
cd "${PATH_TO_GAME}"
}
########################################################################
ADD_IN_STOP_PORTWINE ()
{
echo " "
}
########################################################################
ADD_IN_POST_INSTALL ()
{
`zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment