Commit 62fa3a10 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Minor fix for settings.sh and runlib

parent da121920
...@@ -146,7 +146,7 @@ class CompatData: ...@@ -146,7 +146,7 @@ class CompatData:
# "xinput*.dll," + # "xinput*.dll," +
# #vcruntime redist # #vcruntime redist
# "atl1*.dll," + "atl1*.dll," +
# "concrt1*.dll," + # "concrt1*.dll," +
# "msvcp1*.dll," + # "msvcp1*.dll," +
# "msvcr1*.dll," + # "msvcr1*.dll," +
...@@ -160,7 +160,7 @@ class CompatData: ...@@ -160,7 +160,7 @@ class CompatData:
# "api-ms-win-crt-math-l1-1-0.dll," + # "api-ms-win-crt-math-l1-1-0.dll," +
# "api-ms-win-crt-runtime-l1-1-0.dll," + # "api-ms-win-crt-runtime-l1-1-0.dll," +
# "api-ms-win-crt-stdio-l1-1-0.dll," + # "api-ms-win-crt-stdio-l1-1-0.dll," +
# "ucrtbase.dll," + "ucrtbase.dll," +
#some games balk at ntdll symlink(?) #some games balk at ntdll symlink(?)
"ntdll.dll," + "ntdll.dll," +
......
...@@ -54,7 +54,7 @@ if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then ...@@ -54,7 +54,7 @@ if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then
echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver" echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver"
fi fi
######################################################################## ########################################################################
export pw_libs_ver="_v4" export pw_libs_ver="_v5"
export port_on_run="${PORT_WINE_PATH}/data/port_on" export port_on_run="${PORT_WINE_PATH}/data/port_on"
export WINEDIR="${PORT_WINE_PATH}"/data/dist export WINEDIR="${PORT_WINE_PATH}"/data/dist
export WINELIB="${HOME}/.PortWINE/libs${pw_libs_ver}" export WINELIB="${HOME}/.PortWINE/libs${pw_libs_ver}"
...@@ -99,6 +99,22 @@ if [ -f "${WINEDIR}"_vkd3d/version ]; then ...@@ -99,6 +99,22 @@ if [ -f "${WINEDIR}"_vkd3d/version ]; then
zen_width=1000 zen_width=1000
fi fi
######################################################################## ########################################################################
if [ ! -e "${WINELIB}/run.sh" ]; then
echo "Download and install libraries..."
wget -c -T 2 --output-document="${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" "${PW_FTP_URL}"/dist/libs${pw_libs_ver}.tar.xz | sszen &&
tar -Jxvf "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" -C "${HOME}/.PortWINE/" | sszen &&
rm -f "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz"
"${WINELIB}"/setup.sh --force
fi
if [ -e "${WINELIB}/run.sh" ]; then
echo "######################################################"
echo "Runtime libraries is enabled"
pw_yad="${WINELIB}/usr/bin/yad"
else
echo "######################################################"
echo "Runtime libraries is disabled"
fi
########################################################################
START_PORTWINE () START_PORTWINE ()
{ {
if [ "${PW_USE_TERMINAL}" = "1" ]; then if [ "${PW_USE_TERMINAL}" = "1" ]; then
...@@ -116,22 +132,6 @@ if [ "${PW_USE_TERMINAL}" = "1" ]; then ...@@ -116,22 +132,6 @@ if [ "${PW_USE_TERMINAL}" = "1" ]; then
fi fi
sh "${PORT_SCRIPTS_PATH}"/port_update sh "${PORT_SCRIPTS_PATH}"/port_update
######################################################################## ########################################################################
if [ ! -e "${WINELIB}/run.sh" ]; then
echo "Download and install libraries..."
wget -c -T 2 --output-document="${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" "${PW_FTP_URL}"/dist/libs${pw_libs_ver}.tar.xz | sszen &&
tar -Jxvf "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" -C "${HOME}/.PortWINE/" | sszen &&
rm -f "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz"
"${WINELIB}"/setup.sh --force
fi
if [ -e "${WINELIB}/run.sh" ]; then
echo "######################################################"
echo "Runtime libraries is enabled"
# "${PW_RUNTIME}" --print-steam-runtime-library-paths
else
echo "######################################################"
echo "Runtime libraries is disabled"
fi
########################################################################
if [ ! -z $dxvk_ogl_var ]; then if [ ! -z $dxvk_ogl_var ]; then
var_dxvk_on="${dxvk_ogl_var}" var_dxvk_on="${dxvk_ogl_var}"
else else
...@@ -251,14 +251,14 @@ sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf & ...@@ -251,14 +251,14 @@ sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf &
rm -f "${WINEDIR}"*/lib*/*steam* && rm -f "${WINEDIR}"*/lib*/*steam* &&
rm -f "${WINEDIR}"*/lib*/wine/*steam* && rm -f "${WINEDIR}"*/lib*/wine/*steam* &&
rm -f "${WINEDIR}"*/lib*/wine/fakedlls/*steam* && rm -f "${WINEDIR}"*/lib*/wine/fakedlls/*steam* &&
if [ ! -d "${WINEPREFIX}" ] || [ ! -d "${WINEPREFIX}"/dosdevices ] || [ ! -d "${WINEPREFIX}"/drive_c/windows ] || [ ! -f "${WINEPREFIX}"/system.reg ] || [ ! -f "${WINEPREFIX}"/user.reg ] || [ ! -f "${WINEPREFIX}"/userdef.reg ]; then # if [ ! -d "${WINEPREFIX}" ] || [ ! -d "${WINEPREFIX}"/dosdevices ] || [ ! -d "${WINEPREFIX}"/drive_c/windows ] || [ ! -f "${WINEPREFIX}"/system.reg ] || [ ! -f "${WINEPREFIX}"/user.reg ] || [ ! -f "${WINEPREFIX}"/userdef.reg ]; then
if [ ! -z "$(cat /etc/locale.gen | grep "^en_US.UTF-8")" ]; then # if [ ! -z "$(cat /etc/locale.gen | grep "^en_US.UTF-8")" ]; then
export PW_LANG_OS="${LANG}" # export PW_LANG_OS="${LANG}"
export LANG=en_US.UTF-8 # export LANG=en_US.UTF-8
fi # fi
$PW_TERM "${PW_RUNTIME}" "${WINELOADER}" wineboot -u && # $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" wineboot -u &&
export LANG="${PW_LANG_OS}" # export LANG="${PW_LANG_OS}"
fi # fi
sed -i '/steamclient/d' "${WINEPREFIX}"/*.reg && sed -i '/steamclient/d' "${WINEPREFIX}"/*.reg &&
sed -i '/SteamPath/d' "${WINEPREFIX}"/*.reg && sed -i '/SteamPath/d' "${WINEPREFIX}"/*.reg &&
......
...@@ -62,14 +62,15 @@ START_PORTWINE ...@@ -62,14 +62,15 @@ START_PORTWINE
$PW_TERM "${PW_RUNTIME}" "${PORT_WINE_TMP_PATH}/winetricks" -q --force $PW_TERM "${PW_RUNTIME}" "${PORT_WINE_TMP_PATH}/winetricks" -q --force
} }
########################## ##########################
OUTPUT=$(yad --form \ OUTPUT=$("${pw_yad}" --borders=20 --form --center \
--title "SETTINGS" --image "winecfg" --separator=";" \ --title "SETTINGS" --image "winecfg" --separator=";" \
--field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}" \ --field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}" \
--button='WINECFG'!winecfg!"Run winecfg for $portname":100 \ --button='WINECFG'!!"Run winecfg for $portname":100 \
--button='WINEFILE'!winecfg!'проверка подсказки1':102 \ --button='WINEFILE'!!'проверка подсказки1':102 \
--button='WINECMD'!winecfg!'проверка подсказки2':104 \ --button='WINECMD'!!'проверка подсказки2':104 \
--button='WINEREG'!winecfg!'проверка подсказки3':106 \ --button='WINEREG'!!'проверка подсказки3':106 \
--button='WINETRICKS'!winecfg!'проверка подсказки4 - бла бла бла бла бла ла ла ла =)':108 ) --button='WINETRICKS'!!'проверка подсказки4 - бла бла бла бла бла ла ла ла =)':108 )
PW_YAD_SET="$?" PW_YAD_SET="$?"
export VULKAN_MOD=$(echo $OUTPUT | awk 'BEGIN {FS=";" } { print $1 }') export VULKAN_MOD=$(echo $OUTPUT | awk 'BEGIN {FS=";" } { print $1 }')
if [ "${VULKAN_MOD}" = "DXVK ${PW_WINE_VER_DXVK}" ]; then if [ "${VULKAN_MOD}" = "DXVK ${PW_WINE_VER_DXVK}" ]; then
......
...@@ -22,7 +22,7 @@ if [ ! -z "${gamename}" ]; then ...@@ -22,7 +22,7 @@ if [ ! -z "${gamename}" ]; then
name_desktop="${gamename}" name_desktop="${gamename}"
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Name=${name_desktop}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "Name=${name_desktop}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Exec=sh "${PORT_SCRIPTS_PATH}/start"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "Exec=env "${PORT_SCRIPTS_PATH}/start"" >> "${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"
echo "StartupNotify=true" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" echo "StartupNotify=true" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
...@@ -72,7 +72,7 @@ for name_desktop in "debug" "reset" ...@@ -72,7 +72,7 @@ for name_desktop in "debug" "reset"
do do
echo ""[Desktop Entry]" echo ""[Desktop Entry]"
"Name=${name_desktop}" "Name=${name_desktop}"
"Exec=sh "${PORT_SCRIPTS_PATH}/${name_desktop}"" "Exec=env "${PORT_SCRIPTS_PATH}/${name_desktop}""
"Type=Application" "Type=Application"
"Categories=Game" "Categories=Game"
"StartupNotify=true" "StartupNotify=true"
...@@ -81,10 +81,10 @@ do ...@@ -81,10 +81,10 @@ do
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop" chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
done done
name_desktop="settings.sh" name_desktop="settings"
echo ""settings" echo ""[Desktop Entry]"
"Name=settings" "Name=settings"
"Exec=sh "${PORT_SCRIPTS_PATH}/${name_desktop}"" "Exec=env "${PORT_SCRIPTS_PATH}/${name_desktop}.sh""
"Type=Application" "Type=Application"
"Categories=Game" "Categories=Game"
"StartupNotify=true" "StartupNotify=true"
......
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