Commit 447c314d authored by Mikhail Tergoev's avatar Mikhail Tergoev

###Scripts version 1066###

parent 7168b324
#!/bin/bash
#Author: dez
#Battle.net Launcher.exe
#Battle.net Launcher.exe
#Battle.net-Setup.exe
#Battle.net.exe
#Rating=5
################################################
##export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export WINEDLLOVERRIDES="locationapi="
export PW_DLL_INSTALL="vcrun2017 d3dx11_42 d3dx11_43"
export PW_DLL_INSTALL="vcrun2019 d3dx11_42 d3dx11_43"
export PW_WINDOWS_VER=10
export PW_NVAPI_DISABLE=1
ADD_IN_START_PORTWINE () {
ADD_IN_START_PORTWINE () {
rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/ProgramData/Agent/data"
rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}/Blizzard Entertainment/Battle.net/Cache"
rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public/Blizzard Entertainment/Battle.net/Cache"
......
......@@ -4,8 +4,7 @@
#GOG_Galaxy_2.0.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export WINEDLLOVERRIDES="galaxycommunication.exe=n"
export WINEDLLOVERRIDES="galaxycommunication.exe=n;libglesv2="
export LAUNCH_PARAMETERS="/runWithoutUpdating /deelevated"
export PW_DLL_INSTALL="vcrun2017 vcrun6 mfc140"
ADD_IN_START_PORTWINE ()
......@@ -13,4 +12,4 @@ ADD_IN_START_PORTWINE ()
if [ -e "${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ] ; then
sed -i 's/"featureOverlay" : true,/"featureOverlay" : false,/' "${WINEPREFIX}/drive_c/${USER}/steamuser/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json"
fi
}
\ No newline at end of file
}
\ No newline at end of file
#!/bin/bash
#Author: xuser
#WorldOfTanks.exe
#WorldOfTanks.exe
#Rating=5
################################################
export PW_VULKAN_USE=dxvk #dxvk, vkd3d or 0 for OpenGL
export PW_DLL_INSTALL="lucida" # Install DDL in port prefix (used winetricks)
export WINEDLLOVERRIDES="xaudio2_7="
export PW_DLL_INSTALL="lucida vcrun2019" # Install DDL in port prefix (used winetricks)
export WINEDLLOVERRIDES="xaudio2_7="
export PW_WINEDBG_DISABLE=1 # Disabled WINEDBG
#!/bin/bash
#Author: PortWINE
#wgc.exe
#wgc.exe
#Rating=5
################################################
#export PW_VULKAN_USE=dxvk #dxvk, vkd3d or 0 for OpenGL
export LAUNCH_PARAMETERS="--disable-gpu" # Additional launch options
export PW_USE_TERMINAL=1
export PW_WINDOWS_VER=7 # Set windows version 10, 7 or XP
#export PW_USE_TERMINAL=1
#export PW_WINDOWS_VER=7 # Set windows version 10, 7 or XP
export PW_NVAPI_DISABLE=1
export WINEDLLOVERRIDES="ucrtbase=b,n"
#export WINEDLLOVERRIDES="xaudio2_7=n"
export PW_DLL_INSTALL="lucida vcrun2019" # Install DDL in port prefix (used winetricks)
##export PW_GUI_DISABLED_CS=1
export PW_WINEDBG_DISABLE=1 # Disabled WINEDBG
ADD_IN_START_PORTWINE () {
ADD_IN_START_PORTWINE () {
sed -i 's/true/false/g' "$WINEPREFIX/drive_c/ProgramData/Wargaming.net/GameCenter/preferences.xml"
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -57,7 +57,7 @@ done
chmod u+x "${PORT_SCRIPTS_PATH}/"*
try_force_link_dir "${PORT_WINE_PATH}/data/pfx/drive_c/" "${PORT_WINE_PATH}/"
pw_clear_pfx
#pw_clear_pfx
if [ "${s_install}" = "1" ]; then
echo "Installation completed successfully."
else
......
......@@ -13,17 +13,13 @@ PORTWINE_LAUNCH () {
PORTWINE_BAT=`basename "${portwine_exe}" | grep .bat`
if [ ! -z "${PW_VIRTUAL_DESKTOP}" ] && [ "${PW_VIRTUAL_DESKTOP}" == "1" ] ; then
pw_screen_resolution=`xrandr --current | grep "*" | awk '{print $1;}' | head -1`
PW_RUN explorer "/desktop=portwine,${pw_screen_resolution}" "$portwine_exe"
elif [ ! -z "${PORTWINE_MSI}" ]; then
echo "PORTWINE_MSI=${PORTWINE_MSI}"
PW_RUN explorer "/desktop=portwine,${pw_screen_resolution}" "$WINE_WIN_START" /b /unix "$portwine_exe"
elif [ ! -z "${PORTWINE_MSI}" ]; then
PW_RUN msiexec /i "$portwine_exe"
elif [ ! -z "${PORTWINE_BAT}" ]; then
echo "PORTWINE_BAT=${PORTWINE_BAT}"
PW_RUN explorer "$portwine_exe"
elif [ ! -z "${portwine_exe}" ]; then
PW_RUN "$portwine_exe"
else
PW_RUN explorer
elif [ ! -z "${PORTWINE_BAT}" ] || [ ! -z "${portwine_exe}" ]; then
PW_RUN "$WINE_WIN_START" /b /unix "$portwine_exe"
else
PW_RUN "$WINE_WIN_START" /b explorer
fi
}
PORTWINE_CREATE_SHORTCUT () {
......@@ -35,7 +31,7 @@ PORTWINE_CREATE_SHORTCUT () {
if [ $? -eq 1 ];then exit 1; fi
fi
PORTPROTON_NAME="$(basename "${PORTPROTON_EXE}" | sed s/".exe"/""/gi )"
PORTPROTON_PATH="$( cd "$( dirname "${PORTPROTON_EXE}" )" >/dev/null 2>&1 && pwd )"
PORTPROTON_PATH="$( cd "$( dirname "${PORTPROTON_EXE}" )" >/dev/null 2>&1 && pwd )"
if [ -x "`which wrestool 2>/dev/null`" ]; then
wrestool -x --output="${PORTPROTON_PATH}/" -t14 "${PORTPROTON_EXE}"
cp "$(ls -S -1 "${PORTPROTON_EXE}"*".ico" | head -n 1)" "${PORTPROTON_EXE}.ico"
......@@ -59,9 +55,9 @@ PORTWINE_CREATE_SHORTCUT () {
cat "${PORT_SCRIPTS_PATH}/portwine_db/default" | grep "##" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
fi
fi
name_desktop="${PORTPROTON_NAME}"
name_desktop="${PORTPROTON_NAME}"
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"
if [ -z "${PW_CHECK_AUTOINSTAL}" ]
then echo "Exec=env PW_GUI_DISABLED_CS=1 "\"${PORT_SCRIPTS_PATH}/start.sh\" \"${PORTPROTON_EXE}\" "" \
>> "${PORT_WINE_PATH}/${name_desktop}.desktop"
......@@ -74,14 +70,14 @@ name_desktop="${PORTPROTON_NAME}"
echo "Path="${PORT_SCRIPTS_PATH}/"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Icon="${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
`zenity --question --title "${inst_set}." --text "${ss_done}" --no-wrap ` &> /dev/null
`zenity --question --title "${inst_set}." --text "${ss_done}" --no-wrap ` &> /dev/null
if [ $? -eq "0" ]; then
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/
cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/
fi
xdg-open "${PORT_WINE_PATH}" 2>1 >/dev/null &
}
PORTWINE_DEBUG () {
KILL_PORTWINE
KILL_PORTWINE
export PW_LOG=1
export PW_WINEDBG_DISABLE=0
START_PORTWINE
......@@ -92,7 +88,7 @@ PORTWINE_DEBUG () {
read install_ver < "${PORT_WINE_TMP_PATH}/${portname}_ver"
echo "${portname}-${install_ver}" >> "${PORT_WINE_PATH}/${portname}.log"
echo "----------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
if [ ! -z "${portwine_exe}" ] ; then
if [ ! -z "${portwine_exe}" ] ; then
echo "Debug for programm:" >> "${PORT_WINE_PATH}/${portname}.log"
echo "${portwine_exe}" >> "${PORT_WINE_PATH}/${portname}.log"
echo "---------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
......@@ -132,8 +128,8 @@ PORTWINE_DEBUG () {
echo "----------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
echo "Vulkan info device name:" >> "${PORT_WINE_PATH}/${portname}.log"
"${WINELIB}/amd64/usr/bin/vulkaninfo" | grep deviceName >> "${PORT_WINE_PATH}/${portname}.log"
"${WINELIB}/amd64/usr/bin/vkcube" --c 50
if [ $? -eq 0 ]; then
"${WINELIB}/amd64/usr/bin/vkcube" --c 50
if [ $? -eq 0 ]; then
echo "Vulkan cube test passed successfully" >> "${PORT_WINE_PATH}/${portname}.log"
else
echo "Vkcube test completed with error" >> "${PORT_WINE_PATH}/${portname}.log"
......@@ -161,8 +157,8 @@ PORTWINE_DEBUG () {
echo "Log WINE:" >> "${PORT_WINE_PATH}/${portname}.log"
export DXVK_HUD="full"
PORTWINE_LAUNCH &
PORTWINE_LAUNCH &
sleep 1 && zenity --info --title "DEBUG" --text "${port_debug}" --no-wrap &> /dev/null && KILL_PORTWINE
deb_text=$(cat "${PORT_WINE_PATH}/${portname}.log" | awk '! a[$0]++')
echo "$deb_text" > "${PORT_WINE_PATH}/${portname}.log"
......@@ -172,20 +168,20 @@ PORTWINE_DEBUG () {
}
PW_WINECFG () {
START_PORTWINE
PW_RUN winecfg
}
PW_RUN "$WINE_WIN_START" /b winecfg
}
PW_WINEFILE () {
START_PORTWINE
PW_RUN "explorer"
PW_RUN "$WINE_WIN_START" /b explorer
}
PW_WINECMD () {
export PW_USE_TERMINAL=1
START_PORTWINE
PW_RUN "cmd"
PW_RUN cmd
}
PW_WINEREG () {
START_PORTWINE
PW_RUN "regedit"
PW_RUN "$WINE_WIN_START" /b regedit
}
PW_WINETRICKS () {
UPDATE_WINETRICKS
......@@ -200,8 +196,6 @@ PW_AUTO_INSTALL_FROM_DB () {
. "$PORT_SCRIPTS_PATH/autoinstall"
$PW_YAD_SET
}
if [ ! -z "${portwine_exe}" ]; then
if [ -z "${PW_GUI_DISABLED_CS}" ] || [ "${PW_GUI_DISABLED_CS}" = 0 ] || [ -z "${PW_VULKAN_USE}" ]; then
if [ ! -z "${PORTWINE_DB_FILE}" ] && [ ! -z "${PW_VULKAN_USE}" ]; then
......
......@@ -4,8 +4,9 @@
#export PW_MANGOHUD=1
#export MANGOHUD_CONFIG=full,height=500,font_size=24,position=top-left,toggle_hud=F12
#export DXVK_HUD=fps,devinfo
#export PW_VIRTUAL_DESKTOP=1
export PW_FORCE_DISABLED_GAMEMOD=0
export PW_FORCE_DISABLED_GAMEMOD=0
export PW_DEF_DXVK_VER=1.8.1
export PW_DEF_VKD3D_VER=2.3.1
......@@ -18,7 +19,7 @@ export PW_USE_TERMINAL=0
export PW_WINDOWS_VER="7"
export WINEARCH="win64"
export mono_ver=6.1.2
export mono_ver=6.1.1
export gecko_ver=2.47.2
export pw_libs_ver="_v10"
......@@ -32,7 +33,7 @@ echo " "
}
########################################################################
ADD_IN_STOP_PORTWINE ()
{
{
echo " "
}
########################################################################
......
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