Commit 1c80e991 authored by Mikhail Tergoev's avatar Mikhail Tergoev

###Scripts version 2077###

parent 9df1ff96
......@@ -3,6 +3,10 @@ You can help us in the development of the project on the website: https://boosty
Changelog:
###Scripts version 2076###
* fixed empty VULKAN/OPENGL selection window with some db files
* the main GUI functions on yad are moved to a separate file
###Scripts version 2076###
* HOTFIX - create symlink
###Scripts version 2075###
......
......@@ -3,6 +3,10 @@
История изменений:
###Scripts version 2076###
* исправлены пустое окно выбора VULKAN/OPENGL с некоторыми db файлами
* основные функции GUI на yad вынесены в отдельный файл
###Scripts version 2076###
* HOTFIX - создание симлинков
###Scripts version 2075###
......@@ -640,7 +644,7 @@ PS: не забывает для активации добавить перем
* фикс выбора режима запуска при уже созданном ярлыке, но отсутствующем PW_VULKAN_USE
###Scripts version 1056###
* исправлена работа gnome-terminal если "$SHELL" не равен "/bin/bash"
* исправлена работа gnome-terminal если "$SHELL" не равен "/usr/bin/env bash"
###Scripts version 1055###
* fix YAD
......
#!/bin/bash
#!/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
pw_ping_test () {
......@@ -11,22 +11,11 @@ print_error () {
}
export -f print_error
zenity_error () {
echo "ERROR: $@"
zenity --error --no-wrap --text "$@" 2> /dev/null
}
export -f zenity_error
print_info () {
echo "INFO: $@"
}
export -f print_info
zenity_info () {
echo "INFO: $@"
zenity --info --no-wrap --text "$@" 2> /dev/null
}
export -f zenity_info
print_var () {
for vp in $@ ; do echo "${vp}=${!vp}" ; done
......@@ -158,19 +147,11 @@ try_download_silent () {
fi
}
zenity_error_download () {
`zenity --error --title "Error..." --text "You will need to check internet connection,\nand press OK for repeat download" --no-wrap `
if [[ "$?" != 0 ]] ; then
stop_portwine
else
return 0
fi
}
create_new_dir () {
if [ ! -d "$1" ] ; then
mkdir -p "$1"
fi
return 0
}
var_winedlloverride_update () {
......@@ -178,6 +159,7 @@ var_winedlloverride_update () {
then export WINEDLLOVERRIDES="${1};${WINEDLLOVERRIDES}"
else export WINEDLLOVERRIDES="${1}"
fi
return 0
}
var_vkd3d_config_update () {
......@@ -185,6 +167,7 @@ var_vkd3d_config_update () {
then export VKD3D_CONFIG="${1};${VKD3D_CONFIG}"
else export VKD3D_CONFIG="${1}"
fi
return 0
}
unpack_tar_xz () {
......@@ -216,6 +199,7 @@ pw_mangohud_check () {
else
export DISABLE_MANGOHUD=1
fi
return 0
}
export -f pw_mangohud_check
......@@ -240,12 +224,7 @@ pw_vkbasalt_check () {
else
export DISABLE_VKBASALT=1
fi
}
gui_question () {
`zenity --question --title "${inst_set}." --text "$1" --no-wrap ` &> /dev/null
[ $? -eq "0" ] && return 0 || return 1
return 0
}
pw_clear_pfx () {
......@@ -283,14 +262,16 @@ pw_clear_pfx () {
try_remove_dir "${PORT_WINE_TMP_PATH}/mesa_shader_cache"
rm -f "${PORT_WINE_TMP_PATH}"/*.bin
rm -f "${PORT_WINE_TMP_PATH}"/*.foz
return 0
}
check_user_conf () {
if [ ! -f "${USER_CONF}" ]; then
echo "#!/bin/bash" > "${USER_CONF}"
echo "#!/usr/bin/env bash" > "${USER_CONF}"
echo "# User overides db and var settings..." >> "${USER_CONF}"
chmod u+x "${USER_CONF}"
fi
return 0
}
init_wine_ver () {
......@@ -362,63 +343,14 @@ init_wine_ver () {
fi
done
fi
}
sszen() {
zenity --progress --title="Settings..." --text="Updating parameters" --pulsate --auto-close --width=500 --height=90 --no-cancel
}
pw_start_progress_bar_cover () {
PW_GIF_FILE="$1"
PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 20}'`
PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 20}'`
"${pw_yad}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
--skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_COVER="$!"
}
pw_update_pfx_cover_gui () {
PW_KEY_PROGRESS_BAR=$RANDOM
PW_GIF_FILE="${PW_GUI_ICON_PATH}/covers/pw_update_pfx_cover.gif"
PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 40}'`
PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 80}'`
echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
while [[ -f "${PORT_WINE_TMP_PATH}/update_pfx_log" ]] ; do
sleep 1
while read -r gui_line ; do
echo "# ${gui_line}"
done
done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="2" --text-info --tail &
"${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="1" --picture --filename="${PW_GIF_FILE}" --image-on-top &
"${pw_yad_new}" --notebook --key="$PW_KEY_PROGRESS_BAR" --tab=LOGO --tab=TERMINAL --no-buttons --undecorated \
--center --auto-close --skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y --tab-pos=bottom &
export PW_YAD_PID_PFX_COVER_UI="$!"
}
pw_start_progress_bar_cs () {
"${pw_yad}" --progress --progress-text="$@" --pulsate --close-on-unfocus \
--no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_CS="$!"
}
pw_start_progress_bar_block () {
"${pw_yad}" --progress --progress-text="$@" --pulsate \
--no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_BLOCK="$!"
}
pw_stop_progress_bar () {
kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" "$PW_YAD_PID_PFX_COVER_UI" \
"$PW_YAD_PID_PROGRESS_BAR_COVER" > /dev/null 2>&1
return 0
}
export -f pw_stop_progress_bar
wait_wineserver () {
while [ ! -z "$(ls -l /proc/*/exe 2>/dev/null | grep -ie ${portname} | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}')" ] ; do
sleep 1
done
return 0
}
export -f wait_wineserver
......@@ -439,6 +371,7 @@ kill_portwine () {
fi
done
fi
return 0
}
export -f kill_portwine
......@@ -461,6 +394,7 @@ pw_kill_autostart () {
if [[ ! -z "`ls "${WINEPREFIX}"/drive_c/ | grep -m 1 ".tmp"`" ]] ; then
rm -f "${WINEPREFIX}"/drive_c/*.tmp
fi
return 0
}
export -f pw_kill_autostart
......@@ -522,6 +456,7 @@ pw_download_libs () {
else
export PW_XTERM="${PW_WINELIB}/runtime/files/bin/xterm -geometry 159x37 -e"
fi
return 0
}
pw_check_and_download_wine () {
......@@ -552,6 +487,7 @@ pw_check_and_download_wine () {
zenity_error_download && pw_check_and_download_wine
fi
fi
return 0
}
pw_check_and_download_plugins () {
......@@ -577,42 +513,7 @@ pw_check_and_download_plugins () {
zenity_error_download && pw_check_and_download_wine
fi
fi
}
open_changelog () {
"${pw_yad}" --title="Changelog" --borders=10 --no-buttons --text-align=center \
--text-info --show-uri --wrap --center --width=1200 --height=550 --uri-color=red \
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}"
}
export -f open_changelog
pw_tray_icon () {
if [ ! -z "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" ] ; then
kill -s SIGUSR1 "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`"
fi
tray_icon_click () {
echo ""
}
export -f tray_icon_click
pw_tray_winefile () {
pw_run explorer
}
export -f pw_tray_winefile
tray_icon_click_exit () {
pw_stop_progress_bar
stop_portwine
}
export -f tray_icon_click_exit
"${pw_yad_new}" --notification --no-middle --text="PortProton" \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
--image="$PW_GUI_ICON_PATH/port_proton.png" \
--command="bash -c tray_icon_click" \
--tooltip="PortProton" \
--menu="| \
<<< WINEFILE >>>!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/port_winefile.png"| \
<<< CHANGE LOG >>>!bash -c open_changelog!"$PW_GUI_ICON_PATH/port_changelog.png"| \
<<< FORCE EXIT >>>!bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/port_exit.png"|" &
return 0
}
pw_init_db () {
......@@ -647,6 +548,7 @@ pw_init_db () {
export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )"
fi
fi
return 0
# export WIN_PATH_TO_GAME=`echo "C:${PATH_TO_GAME}" | sed "s%$WINEPREFIX%%g" | sed "s/drive_c//g" | sed 's#/#\\\#g'`
}
......@@ -714,7 +616,7 @@ pw_port_update () {
echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver"
zenity --title="Changelog" --text-info --width=1200 --height=550 \
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}"
[ "$?" == 0 ] && /bin/bash -c ${pw_full_command_line[*]} &
[ "$?" == 0 ] && /usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
else
......@@ -729,6 +631,7 @@ pw_port_update () {
fi
try_remove_file "${PORT_WINE_TMP_PATH}/curent_var_ver"
fi
return 0
}
......@@ -753,6 +656,7 @@ update_winetricks () {
sed -i 's/vc_redist.x64.exe 003063723b2131da23f40e2063fb79867bae275f7b5c099dbd1792e25845872b/vc_redist.x64.exe 9b9dd72c27ab1db081de56bb7b73bee9a00f60d14ed8e6fde45dab3e619b5f04/g' "${PORT_WINE_TMP_PATH}/winetricks"
fi
return 0
}
edit_db_from_gui () {
......@@ -768,246 +672,5 @@ edit_db_from_gui () {
sed -ri "s/.*export ${mod_db}=.*/export ${mod_db}=${!mod_db}/g" "${PORTWINE_DB_FILE}"
fi
done
}
pw_gui_for_edit_db () {
KEY_EDIT_DB_GUI=$RANDOM
if [[ -n "`echo "${MANGOHUD_CONFIG}" | grep "fps_limit"`" ]] ; then
FPS_LIMIT_VAR="`echo ${MANGOHUD_CONFIG} | sed 's/.*fps_limit=//g' | awk -F, '{print $1}'`"
else
FPS_LIMIT_VAR=0
fi
echo "FPS_LIMIT_VAR=$FPS_LIMIT_VAR"
unset ADD_CHK_BOX_EDIT_DB
edit_db_field_add () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="`echo ${int_to_boole} | sed 's/^PW_//'`"
ADD_CHK_BOX_EDIT_DB+="--field= ${int_to_boole_non_pw} !${!TMP_HELP_FOR_GUI}:CHK%${!int_to_boole}%"
done
}
edit_db_field_add $@
old_IFS=$IFS
IFS="%"
"${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="1" --form --separator=" " --columns=4 ${ADD_CHK_BOX_EDIT_DB} \
1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db" &
IFS=$old_IFS
"${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator=" " --columns=1 \
--field="MANGOHUD FPS LIMIT (0-disabled):SCL" ${FPS_LIMIT_VAR} 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" &
"${pw_yad_new}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="400" \
--text "Change settings in database file for ${PORTWINE_DB}\n" --separator=" " --borders=10 --center \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --button="CANCEL":1 --button="OPEN DB FILE":150 --button="SAVE CHANGES":0
YAD_STATUS="$?"
if [[ "$YAD_STATUS" == "1" ]] ; then
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
elif [[ "$YAD_STATUS" == "252" ]] ; then
exit 0
elif [ "$YAD_STATUS" == "150" ] ; then
xdg-open "${PORTWINE_DB_FILE}" &
exit 0
fi
output_yad_edit_db=(`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db"`)
bool_from_yad=0
edit_db_field_read () {
for boole_to_int in $@ ; do
export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]}
if [ "${!boole_to_int}" == "TRUE" ]
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( ${bool_from_yad} + 1 ))
done
}
edit_db_field_read $@
FPS_LIMIT="`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit"`"
if [ "${FPS_LIMIT}" == 0 ] ; then
export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt
else
export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt,fps_limit=${FPS_LIMIT}
fi
edit_db_from_gui $@ MANGOHUD_CONFIG
# PW_DB_TMP=`cat "${PORTWINE_DB_FILE}"`
# echo "${PW_DB_TMP}" | awk '! a[$0]++' > "${PORTWINE_DB_FILE}"
# unset PW_DB_TMP
}
gui_proton_downloader () {
pw_start_progress_bar_block "Check new version WINE from GitHub"
#PROTON_GE
export PROTON_GE_GIT=($(curl -s "https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases" | grep "browser_download_url.*\.tar\.gz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
if [[ ! -z "${PROTON_GE_GIT}" ]] ; then
for PGEGIT in ${PROTON_GE_GIT[@]} ; do
echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.gz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
done
sed -i '/Proton-6.5-GE-2/,$d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i '/github-action/d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
fi
#PROTON_PW
export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
if [[ ! -z "${PROTON_PW_GIT}" ]] ; then
for PPWGIT in ${PROTON_PW_GIT[@]} ; do
echo ${PPWGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
done
sed -i /${PW_PROTON_GE_VER}/d "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
sed -i '/plugins/d' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
fi
pw_stop_progress_bar
if [[ -z "${PROTON_GE_GIT}" ]] || [[ -z "${PROTON_PW_GIT}" ]] ; then
zenity_error "Error: check wine from github."
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
fi
for INSTALLING_VERSION_IN_DIST in `ls "${PORT_WINE_PATH}/data/dist/"` ; do
sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
done
#Installed wine
ls -l ${PORT_WINE_PATH}/data/dist | awk '{print $9}' | sed '/^$/d' > ${PORT_WINE_TMP_PATH}/tmp_installed_wine
#GUI
export KEY_WINE=$RANDOM
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"
`"${pw_yad}" --plug=$KEY_WINE --tabnum=2 --list --separator="" --listen \
--column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"` &
`"${pw_yad}" --plug=$KEY_WINE --tabnum=1 --list --separator="" --listen \
--column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set"` &
`"${pw_yad}" --plug=$KEY_WINE --tabnum=3 --list --separator="" --listen \
--column "Select installed WINE for delete:" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"` &
`"${pw_yad}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center --center \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "Download..." --separator="" \
--tab-pos=top --tab="PROTON-GE" --tab="PROTON-PW" --tab="INSTALLED"`
YAD_WINE_STATUS="$?"
if [[ "$YAD_WINE_STATUS" == "1" || "$YAD_WINE_STATUS" == "252" ]] ; then
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
fi
if [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_set" | awk '{print $1}'` ] ; then
export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_set"`"
elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" | awk '{print $1}'` ] ; then
export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"`"
elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" | awk '{print $1}'` ] ; then
export VERSION_INSTALLED_WINE="`cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"`"
fi
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine"
for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ; do
if [ ! -z `echo ${GIVE_WINE_URL} | grep "$VERSION_WINE_GIT"` ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
fi
done
if [[ ! -z "${VERSION_INSTALLED_WINE}" ]]; then
try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_INSTALLED_WINE}"
unset VERSION_INSTALLED_WINE
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
fi
print_info "Download and install ${VERSION_WINE_GIT}..."
if try_download_to_path "${URL_VERSION_PROTON_GIT}" "${PORT_WINE_PATH}/data/tmp/" ; then
for archive_type in "gz" "xz" ; do
if [ -f "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" ] ; then
if unpack_tar_${archive_type} "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" "${PORT_WINE_PATH}/data/dist/" ; then
try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}"
if [ ! -z "${portwine_exe}" ]; then
PW_WINE_USE=${VERSION_WINE_GIT}
edit_db_from_gui PW_WINE_USE
fi
else
try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}"
try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_WINE_GIT}"
zenity_error_download && gui_proton_downloader
fi
fi
done
else
zenity_error_download && gui_proton_downloader
fi
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
}
export -f gui_proton_downloader
gui_vkBasalt () {
KEY_FX_GUI=$RANDOM
FILE_VKBASALT_CONF="${PORT_WINE_PATH}/data/vkBasalt.conf"
LIST_FX=(`grep ".fx$" "${FILE_VKBASALT_CONF}" | awk '{print $1}'`)
GET_FX_IN_FILE=(`echo ${PW_VKBASALT_EFFECTS} | sed s/"cas:"// | sed s/":"/" "/g`)
unset ADD_GUI_FX GUI_FX_RESULT
for add_list_fx in ${LIST_FX[@]} ; do
PW_VKBASALT_GUI_HELP="PW_${add_list_fx}_INFO"
if [[ ! -z `echo " ${GET_FX_IN_FILE[@]} " | grep " ${add_list_fx} "` ]] ; then
ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%TRUE%"
else
ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%FALSE%"
fi
done
if [[ ! -z "${PW_VKBASALT_FFX_CAS}" ]] ; then
VKBASALT_FFX_CAS_GUI=`bc -s <<< "${PW_VKBASALT_FFX_CAS}*100" | sed 's/\..*//'`
else
VKBASALT_FFX_CAS_GUI=75
fi
export old_IFS=$IFS
export IFS="%"
"${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=5 --separator=" " \
${ADD_GUI_FX} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set" &
export IFS="${old_IFS}"
"${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \
--field="AMD FidelityFX - Contrast Adaptive Sharpening":SCL "${VKBASALT_FFX_CAS_GUI}" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" &
"${pw_yad_new}" --paned --key="$KEY_FX_GUI" --height="500" --title="vkBasalt" --center --borders=10 \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
--button="CANCEL":1 --button="DISABLE VKBASALT":180 --button="ENABLE VKBASALT":182
YAD_VKBASALT_STATUS="$?"
case "${YAD_VKBASALT_STATUS}" in
1|252)
/bin/bash -c ${pw_full_command_line[*]} &
exit 0 ;;
180)
export ENABLE_VKBASALT=0 ;;
182)
export ENABLE_VKBASALT=1 ;;
esac
YAD_BASALT_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set"`
YAD_CAS_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" | sed s/" "//g`
INT_COUNT_FX=0
for read_list_fx in ${YAD_BASALT_SET} ; do
if [[ "$read_list_fx" == "TRUE" ]] ; then
export GUI_FX_RESULT+=":${LIST_FX[$INT_COUNT_FX]}"
fi
export INT_COUNT_FX=$(( ${INT_COUNT_FX} + 1 ))
done
GUI_FX_RESULT="cas${GUI_FX_RESULT}"
export PW_VKBASALT_EFFECTS="${GUI_FX_RESULT}"
if [[ "$YAD_CAS_SET" == "0" ]] ; then
export PW_VKBASALT_FFX_CAS="0"
elif [[ "$YAD_CAS_SET" == "100" ]] ; then
export PW_VKBASALT_FFX_CAS="1"
else
export PW_VKBASALT_FFX_CAS="0`bc -s <<< "scale=2; $YAD_CAS_SET/100"`"
fi
edit_db_from_gui PW_VKBASALT_EFFECTS PW_VKBASALT_FFX_CAS ENABLE_VKBASALT
/bin/bash -c ${pw_full_command_line[*]} &
exit 0
return 0
}
#!/bin/bash
#!/bin/env bash
# Author: PortWINE-Linux.ru
read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc"
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#AC4BFSP.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#ACIII.exe
#ACLiberation.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: anonymous
#ACValhalla.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#ALOTInstaller.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Аливэй
#Ableton Live 11 Suite.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#AliceMadnessReturns.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: garrett
#AI.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#ACM.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Anno4.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: stalker
#AnomalyLauncher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: akai
#Arthur.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#AssassinsCreedII.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#AssassinsCreedIIGame.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Сергей 33 (46)
#BF2.exe
#Rating=4
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#bg3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: dez
#Battle.net Launcher.exe
#Battle.net-Setup.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: kosta
#Biomutant.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#Botanicula.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:PortWINE
#Brokgame.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#CoJBiBGame_x86.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Cinebench.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Configurator.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: user
#Control_DX11.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: user
#Control_DX12.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#CyberShadow.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Cyberpunk2077.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#DAOriginsLauncher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#DOOMEternalx64vk.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nix
#DOOMx64.exe
#DOOMx64vk.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#DXHRDC.exe
#DXHumanRevolutionDC.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#DaysGone.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#Dead Space.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#ds.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#FSD.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Deponia.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: MrModer#6697
#DetroitBecomeHuman.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: spider
#Diablo II.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Disjunction.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Dolphin.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#EDLaunch.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#EoCApp.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#EpicGamesLauncher.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: fff555w
#Esprit Games.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#FL.exe
#FL64.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#FSD.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#FarCry.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: gamer
#FarCry6.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#FarLoneSails.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nixon
#farcry3_d3d11.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nixon
#farcry3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nixon
#FarCry4.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: garrett
#ForzaHorizon4.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#Frozen Throne.exe
#Rating=4 - no video
......
#!/bin/bash
#!/usr/bin/env bash
#Author: lemonchic with help from Dezert1r
#GTAIV.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Dezert1r
#GalaxyClient.exe
#GOG_Galaxy_2.0.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#Game-TS3.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#GameLauncher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: zero
#GoW.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nixon
#HITMAN3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#Hades.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Half-Life2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#HellbladeGame.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Heroes3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Heroes3 HD.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Nixon
#HorizonZeroDawn.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Сергей 33(46)
#hulk.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: garrett
#Inscryption.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: vbb
#JustCause4.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: mrm0der
#LOF2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Garrett-42
#Larry.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#LeagueClient.exe
#RiotClientServices.exe
......@@ -76,7 +76,7 @@ check_port_for_lol () {
fi
echo "Waiting for port ${port}"
kill -STOP ${uxpid}
timeout 200m /bin/bash -c "
timeout 200m /usr/bin/env bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1 ; do
sleep 1
done"
......@@ -89,7 +89,7 @@ add_in_start_portwine () {
zenity --question --title="Fix for LoL anti-cheat" \
--text='Root rights are required to execute the command: \n"sysctl -w abi.vsyscall32=0" and "sysctl -p"' --no-wrap
[ "$?" = 1 ] && exit 0
pkexec /bin/bash -c 'sysctl -w abi.vsyscall32=0'
pkexec /usr/bin/env bash -c 'sysctl -w abi.vsyscall32=0'
fi
check_port_for_lol &
}
#!/bin/bash
#!/usr/bin/env bash
#Author: Veil
#LifeIsStrange.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Aliway
#Little Nightmares II.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#LostEmber-Win64-Shipping.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Mad Games Tycoon 2.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#mafiadefinitiveedition.exe
#Rating=4
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#MassEffect.exe
#MassEffectConfig.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#MassEffect2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#MassEffectConfig.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#MassEffectLauncher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#MetroExodus.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: norz3n
#MikuMikuDance.exe
#Rating=3-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: kbp95
#speed.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: sergey
#Nova Patcher.exe
#NovaRO.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#OrangeCast.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#Origin.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: nixon
#Photoshop.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#Praest.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Quake4.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#QuickSFV.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#RAGE2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#RDR2.exe
#PlayRDR2.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: MrModer
#RADMIR_LAUNCHER.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#Revival.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Garrett
#RockstarService.exe
#Launcher.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#SR2_pc.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xihnik
#Sam3.exe
#Rating=3
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Veil
#Secrets Of Grindea.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#sekiro.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#ShelteredWindows64_EOS.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Cefeiko
#SimCity.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: esa
#Singularity.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#Sirus Launcher.exe
#Rating=4
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Skellboy.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: kbp95
#SkyrimSE.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#SpideyPC.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: dez
#StarCraft.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#StarCraft Launcher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Stetup.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Suite.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#Enderal Launcher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#Rating=5
#Terminator.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#This War of Mine.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Torchlight.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#Torment.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#TwoWorlds2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#TwoWorlds2_DX10.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: MrModer
#UNDERTALE.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: chal55rus
#UbisoftConnect.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: chal55rus
#WarGame3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#WorldOfTanks.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: cefeiko
#WorldOfTanksEnCoreLauncher.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: merkli
#XR_3DA.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#alanwake.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: miku
#arizona-starter.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#avengers.exe
#Rating=?
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#name_exe_file.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#dontstarve.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#ePSXe.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#eve.exe
#evelauncher.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#factorio.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: anonymous
#fc3_blooddragon_d3d11.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#gfclient.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: spider
#ghost.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Ridbowt
#Sources: https://lutris.net/games/gothic-ii-gold-edition/
#GothicStarter.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author:
#gta_sa.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#gu.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#gu_addon.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#hl2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#itch.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xihnik
#iw3sp.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xihnik
#iw4sp.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Ridbowt (Nikola P.)
#Sources: https://www.gog.com/forum/medal_of_honor_series/moh_dont_start_on_linux/post2 + https://lutris.net/games/medal-of-honor-allied-assault-war-chest/ + https://www.playground.ru/medal_of_honor_allied_assault/cheat/medal_of_honor_allied_assault_sovet_lyuboe_razreshenie_dalnost_prorisovki_pole_obzora_fov_pravilnoe_otkrytie_vseh_medalej-816472
#Comment: Резервные копии кофиг-файлов находятся в корне игры, в каталогах "/Medal of Honor/main/" + "/Medal of Honor/main/configs/", "/Medal of Honor/mainta/" + "/Medal of Honor/mainta/configs/", "/Medal of Honor/maintt/" + "/Medal of Honor/maintt/configs/". Чтобы восстановить исходные конфигурации - просто удалите в этих каталогах файлы newconfig.cfg и unnamedsoldier.cfg; после этого удалите расширение .bak у файлов newconfig.cfg.bak и unnamedsoldier.cfg.bak.
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#metro.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#osu!.exe
#osu!install.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Ridbowt
#Risen.exe
#Rating 4
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xihnik
#s1_sp64_ship.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#saferun.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: MrM0der
#samp.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#sanitarium_XP.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE-Linux.ru
#setup.exe
#Setup.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: spider
#sprally2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: Cefeiko
#steam.exe
#Rating=5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#trine.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: norz3n
#vocaloid4_4.3.0_setup.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: PortWINE
#wgc.exe
#wgc_api.exe
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#witcher2.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: xuser
#witcher3.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: user
#wot_encore_install_ru.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
#Author: chal55rus
#wotblitz.exe
#Rating=1-5
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("/S")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
[ "${update_loc}" = "RUS" ] && export BN_LOC=ruRU || export BN_LOC=enUS
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT" )
......
#!/bin/bash
#!/usr/bin/env bash
# Author: PortWINE-Linux.ru
########################################################################
export PW_URL_CEMU=($(curl -s "https://cemu.info" | grep "zip" | cut -d \" -f 2))
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
#export LAUNCH_PARAMETERS=("")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
##########################################################################
export LAUNCH_PARAMETERS=("/S")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/duckstation-windows-x64-release.zip"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/q" )
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/ePSXe205.zip"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: cefeiko
########################################################################
export PW_WINDOWS_VER=10
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.), cefeiko, Castro-Fidel (PortWINE-Linux.ru)
##########################################################################
pw_shutdown_please () {
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("/S" )
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
##########################################################################
export LAUNCH_PARAMETERS=("--silent")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/q" )
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/mame0237b_64bit.exe"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/silent" )
......
#!/bin/bash
#!/usr/bin/env bash
# Author: cefeiko
########################################################################
export WINEPREFIX="${PORT_WINE_PATH}/data/pfx_dotnet"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
##########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/RetroArch.7z"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Rockstar-Games-Launcher.exe"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
##########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Steam")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Ubisoft Game Launcher")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/visualboyadvance-m-Win-64bit.zip"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: cefeiko
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
......
#!/bin/bash
#!/usr/bin/env bash
# Author: chal55rus (Sergey P.)
########################################################################
export LAUNCH_PARAMETERS=("/S")
......
#!/bin/bash
#!/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
# Development assistants: Cefeiko; Dezert1r; Taz_mania; Anton_Famillianov; gavr; RidBowt; chal55rus
########################################################################
......@@ -22,10 +22,11 @@ fi
. "$(dirname $(readlink -f "$0"))/functions_helper"
start_portwine () {
export WINEARCH="win64"
pw_check_and_download_wine "${PW_WINE_USE}"
init_wine_ver
if [ -x "`which konsole 2>/dev/null`" ]; then export PW_TERM="konsole --nofork -e"
# elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then export PW_TERM="gnome-terminal -- /bin/bash" ???
# elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then export PW_TERM="gnome-terminal -- /usr/bin/env bash" ???
elif [ -x "`which lxterminal 2>/dev/null`" ]; then export PW_TERM="lxterminal -e"
elif [ -x "`which xterm 2>/dev/null`" ]; then export PW_TERM="${PW_XTERM}"
else export PW_TERM="${PW_XTERM}"
......@@ -472,7 +473,7 @@ start_portwine () {
"${PORT_WINE_TMP_PATH}/winetricks" -q -r -f ${PW_DLL_NEED_INSTALL} 2>&1 | tr /n /r | grep -i "" &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
# if [ "${PW_WINE_VER_FROM_DB}" != "${PW_PROTON_STEAM_VER}" ] ; then
# export PW_SILENT_RESTART=1
# /bin/bash ${pw_full_command_line[*]} &
# /usr/bin/env bash ${pw_full_command_line[*]} &
# exit 0
# fi
fi
......@@ -486,9 +487,9 @@ start_portwine () {
wait_wineserver &&
echo "Set to win${PW_WINDOWS_VER}"
fi
pw_stop_progress_bar
pw_tray_icon
pw_start_progress_bar_cover "${PW_GUI_ICON_PATH}/covers/pw_loading_cover.gif"
pw_stop_progress_bar &&
pw_tray_icon &&
pw_start_progress_bar_cover "${PW_GUI_ICON_PATH}/covers/pw_loading_cover.gif" &&
add_in_start_portwine
}
......@@ -571,6 +572,7 @@ if [ ! -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ] ; then
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc"
fi
. "${PORT_SCRIPTS_PATH}"/lang
. "${PORT_SCRIPTS_PATH}"/zen_yad_gui
export urlg="https://portwine-linux.ru/portwine-faq/"
export PW_WINELIB="${PORT_WINE_TMP_PATH}/libs${PW_LIBS_VER}"
......
#!/bin/bash
#!/bin/env bash
# Author: PortWINE-Linux.ru
. "$(dirname $(readlink -f "$0"))/runlib"
......
#!/bin/bash
#!/usr/bin/env bash
# Author: PortWINE-Linux.ru
export pw_full_command_line=("$0" $*)
if [ -f "$1" ]; then
......@@ -241,7 +241,7 @@ pw_edit_db () {
PW_WINEDBG_DISABLE PW_USE_TERMINAL PW_WINE_ALLOW_XIM PW_HEAP_DELAY_FREE PW_NO_WRITE_WATCH PW_GUI_DISABLED_CS \
PW_USE_GSTREAMER PW_USE_GAMEMODE PW_DX12_DISABLE PW_PRIME_RENDER_OFFLOAD PW_D3D_EXTRAS_DISABLE
if [ "$?" == 0 ] ; then
/bin/bash -c ${pw_full_command_line[*]} &
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
}
......@@ -279,8 +279,8 @@ if [ ! -z "${PORTWINE_DB_FILE}" ] ; then
fi
case "${PW_VULKAN_USE}" in
"0") export PW_DEFAULT_VULKAN_USE='OPENGL!VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)' ;;
"1") export PW_DEFAULT_VULKAN_USE='VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL' ;;
"2") export PW_DEFAULT_VULKAN_USE='VULKAN (WINE DXGI)!VULKAN (DXVK and VKD3D)!OPENGL' ;;
*) export PW_DEFAULT_VULKAN_USE='VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL' ;;
esac
if [[ ! -z `echo "${PW_WINE_USE}" | grep "^PROTON_STEAM$"` ]] ; then
export PW_DEFAULT_WINE_USE="${PW_PROTON_STEAM_VER}!${PW_PROTON_GE_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
......@@ -346,7 +346,7 @@ else
gui_clear_pfx () {
if gui_question "${port_clear_pfx}" ; then
pw_clear_pfx
/bin/bash -c ${pw_full_command_line[*]} &
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
}
......@@ -366,7 +366,7 @@ else
gui_pw_update () {
try_remove_file "${PORT_WINE_TMP_PATH}/scripts_update_notifier"
/bin/bash -c ${pw_full_command_line[*]} &
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
......@@ -471,7 +471,7 @@ if [ -z "${PW_DISABLED_CREATE_DB}" ] ; then
if [ ! -z "${PORTWINE_DB}" ] ; then
PORTWINE_DB_FILE=`grep -il "\#${PORTWINE_DB}.exe" "${PORT_SCRIPTS_PATH}/portwine_db"/*`
if [ -z "${PORTWINE_DB_FILE}" ] ; then
echo "#!/bin/bash" > "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
echo "#!/usr/bin/env bash" > "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
echo "#Author: "${USER}"" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
echo "#"${PORTWINE_DB}.exe"" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
echo "#Rating=1-5" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB"
......
#!/bin/bash
#!/bin/env bash
#Author: Castro-Fidel (PortWINE-Linux.ru)
#SCRIPTS_NEXT_VERSION=2076
#SCRIPTS_NEXT_VERSION=2077
#PORT_NEXT_VERSION=97
########################################################################
export PW_MANGOHUD=1
......
#!/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
zenity_info () {
echo "INFO: $@"
zenity --info --no-wrap --text "$@" 2> /dev/null
}
export -f zenity_info
zenity_error () {
echo "ERROR: $@"
zenity --error --no-wrap --text "$@" 2> /dev/null
}
export -f zenity_error
zenity_error_download () {
`zenity --error --title "Error..." --text "You will need to check internet connection,\nand press OK for repeat download" --no-wrap `
if [[ "$?" != 0 ]] ; then
stop_portwine
else
return 0
fi
}
sszen() {
zenity --progress --title="Settings..." --text="Updating parameters" --pulsate --auto-close --width=500 --height=90 --no-cancel
}
gui_question () {
`zenity --question --title "${inst_set}." --text "$1" --no-wrap ` &> /dev/null
[ $? -eq "0" ] && return 0 || return 1
}
pw_start_progress_bar_cover () {
PW_GIF_FILE="$1"
PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 20}'`
PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 20}'`
"${pw_yad}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
--skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_COVER="$!"
return 0
}
pw_update_pfx_cover_gui () {
PW_KEY_PROGRESS_BAR=$RANDOM
PW_GIF_FILE="${PW_GUI_ICON_PATH}/covers/pw_update_pfx_cover.gif"
PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 40}'`
PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 80}'`
echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
while [[ -f "${PORT_WINE_TMP_PATH}/update_pfx_log" ]] ; do
sleep 1
while read -r gui_line ; do
echo "# ${gui_line}"
done
done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="2" --text-info --tail &
"${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="1" --picture --filename="${PW_GIF_FILE}" --image-on-top &
"${pw_yad_new}" --notebook --key="$PW_KEY_PROGRESS_BAR" --tab=LOGO --tab=TERMINAL --no-buttons --undecorated \
--center --auto-close --skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y --tab-pos=bottom &
export PW_YAD_PID_PFX_COVER_UI="$!"
return 0
}
pw_start_progress_bar_cs () {
"${pw_yad}" --progress --progress-text="$@" --pulsate --close-on-unfocus \
--no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_CS="$!"
return 0
}
pw_start_progress_bar_block () {
"${pw_yad}" --progress --progress-text="$@" --pulsate \
--no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_BLOCK="$!"
return 0
}
pw_stop_progress_bar () {
for PW_KILL_YAD_PID in "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" "$PW_YAD_PID_PFX_COVER_UI" \
"$PW_YAD_PID_PROGRESS_BAR_COVER" "${PW_YAD_PID_PROGRESS_BAR_COVER}"
do
kill -s SIGUSR1 "$PW_KILL_YAD_PID" > /dev/null 2>&1
done
return 0
}
export -f pw_stop_progress_bar
open_changelog () {
"${pw_yad}" --title="Changelog" --borders=10 --no-buttons --text-align=center \
--text-info --show-uri --wrap --center --width=1200 --height=550 --uri-color=red \
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}"
}
export -f open_changelog
pw_tray_icon () {
if [ ! -z "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" ] ; then
kill -s SIGUSR1 "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`"
fi
tray_icon_click () {
echo ""
}
export -f tray_icon_click
pw_tray_winefile () {
pw_run explorer
}
export -f pw_tray_winefile
tray_icon_click_exit () {
pw_stop_progress_bar
stop_portwine
}
export -f tray_icon_click_exit
"${pw_yad_new}" --notification --no-middle --text="PortProton" \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
--image="$PW_GUI_ICON_PATH/port_proton.png" \
--command="bash -c tray_icon_click" \
--tooltip="PortProton" \
--menu="| \
<<< WINEFILE >>>!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/port_winefile.png"| \
<<< CHANGE LOG >>>!bash -c open_changelog!"$PW_GUI_ICON_PATH/port_changelog.png"| \
<<< FORCE EXIT >>>!bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/port_exit.png"|" &
return 0
}
pw_gui_for_edit_db () {
KEY_EDIT_DB_GUI=$RANDOM
if [[ -n "`echo "${MANGOHUD_CONFIG}" | grep "fps_limit"`" ]] ; then
FPS_LIMIT_VAR="`echo ${MANGOHUD_CONFIG} | sed 's/.*fps_limit=//g' | awk -F, '{print $1}'`"
else
FPS_LIMIT_VAR=0
fi
echo "FPS_LIMIT_VAR=$FPS_LIMIT_VAR"
unset ADD_CHK_BOX_EDIT_DB
edit_db_field_add () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="`echo ${int_to_boole} | sed 's/^PW_//'`"
ADD_CHK_BOX_EDIT_DB+="--field= ${int_to_boole_non_pw} !${!TMP_HELP_FOR_GUI}:CHK%${!int_to_boole}%"
done
}
edit_db_field_add $@
old_IFS=$IFS
IFS="%"
"${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="1" --form --separator=" " --columns=4 ${ADD_CHK_BOX_EDIT_DB} \
1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db" &
IFS=$old_IFS
"${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator=" " --columns=1 \
--field="MANGOHUD FPS LIMIT (0-disabled):SCL" ${FPS_LIMIT_VAR} 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" &
"${pw_yad_new}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="400" \
--text "Change settings in database file for ${PORTWINE_DB}\n" --separator=" " --borders=10 --center \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --button="CANCEL":1 --button="OPEN DB FILE":150 --button="SAVE CHANGES":0
YAD_STATUS="$?"
if [[ "$YAD_STATUS" == "1" ]] ; then
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
elif [[ "$YAD_STATUS" == "252" ]] ; then
exit 0
elif [ "$YAD_STATUS" == "150" ] ; then
xdg-open "${PORTWINE_DB_FILE}" &
exit 0
fi
output_yad_edit_db=(`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db"`)
bool_from_yad=0
edit_db_field_read () {
for boole_to_int in $@ ; do
export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]}
if [ "${!boole_to_int}" == "TRUE" ]
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( ${bool_from_yad} + 1 ))
done
}
edit_db_field_read $@
FPS_LIMIT="`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit"`"
if [ "${FPS_LIMIT}" == 0 ] ; then
export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt
else
export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt,fps_limit=${FPS_LIMIT}
fi
edit_db_from_gui $@ MANGOHUD_CONFIG
return 0
}
gui_proton_downloader () {
pw_start_progress_bar_block "Check new version WINE from GitHub"
#PROTON_GE
export PROTON_GE_GIT=($(curl -s "https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases" | grep "browser_download_url.*\.tar\.gz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
if [[ ! -z "${PROTON_GE_GIT}" ]] ; then
for PGEGIT in ${PROTON_GE_GIT[@]} ; do
echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.gz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
done
sed -i '/Proton-6.5-GE-2/,$d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i '/github-action/d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
fi
#PROTON_PW
export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
if [[ ! -z "${PROTON_PW_GIT}" ]] ; then
for PPWGIT in ${PROTON_PW_GIT[@]} ; do
echo ${PPWGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
done
sed -i /${PW_PROTON_GE_VER}/d "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
sed -i '/plugins/d' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
fi
pw_stop_progress_bar
if [[ -z "${PROTON_GE_GIT}" ]] || [[ -z "${PROTON_PW_GIT}" ]] ; then
zenity_error "Error: check wine from github."
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
for INSTALLING_VERSION_IN_DIST in `ls "${PORT_WINE_PATH}/data/dist/"` ; do
sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
done
#Installed wine
ls -l ${PORT_WINE_PATH}/data/dist | awk '{print $9}' | sed '/^$/d' > ${PORT_WINE_TMP_PATH}/tmp_installed_wine
#GUI
export KEY_WINE=$RANDOM
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"
`"${pw_yad}" --plug=$KEY_WINE --tabnum=2 --list --separator="" --listen \
--column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"` &
`"${pw_yad}" --plug=$KEY_WINE --tabnum=1 --list --separator="" --listen \
--column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set"` &
`"${pw_yad}" --plug=$KEY_WINE --tabnum=3 --list --separator="" --listen \
--column "Select installed WINE for delete:" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"` &
`"${pw_yad}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center --center \
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "Download..." --separator="" \
--tab-pos=top --tab="PROTON-GE" --tab="PROTON-PW" --tab="INSTALLED"`
YAD_WINE_STATUS="$?"
if [[ "$YAD_WINE_STATUS" == "1" || "$YAD_WINE_STATUS" == "252" ]] ; then
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
if [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_set" | awk '{print $1}'` ] ; then
export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_set"`"
elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" | awk '{print $1}'` ] ; then
export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"`"
elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" | awk '{print $1}'` ] ; then
export VERSION_INSTALLED_WINE="`cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"`"
fi
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine"
for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ; do
if [ ! -z `echo ${GIVE_WINE_URL} | grep "$VERSION_WINE_GIT"` ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
fi
done
if [[ ! -z "${VERSION_INSTALLED_WINE}" ]]; then
try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_INSTALLED_WINE}"
unset VERSION_INSTALLED_WINE
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
print_info "Download and install ${VERSION_WINE_GIT}..."
if try_download_to_path "${URL_VERSION_PROTON_GIT}" "${PORT_WINE_PATH}/data/tmp/" ; then
for archive_type in "gz" "xz" ; do
if [ -f "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" ] ; then
if unpack_tar_${archive_type} "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" "${PORT_WINE_PATH}/data/dist/" ; then
try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}"
if [ ! -z "${portwine_exe}" ]; then
PW_WINE_USE=${VERSION_WINE_GIT}
edit_db_from_gui PW_WINE_USE
fi
else
try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}"
try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_WINE_GIT}"
zenity_error_download && gui_proton_downloader
fi
fi
done
else
zenity_error_download && gui_proton_downloader
fi
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
export -f gui_proton_downloader
gui_vkBasalt () {
KEY_FX_GUI=$RANDOM
FILE_VKBASALT_CONF="${PORT_WINE_PATH}/data/vkBasalt.conf"
LIST_FX=(`grep ".fx$" "${FILE_VKBASALT_CONF}" | awk '{print $1}'`)
GET_FX_IN_FILE=(`echo ${PW_VKBASALT_EFFECTS} | sed s/"cas:"// | sed s/":"/" "/g`)
unset ADD_GUI_FX GUI_FX_RESULT
for add_list_fx in ${LIST_FX[@]} ; do
PW_VKBASALT_GUI_HELP="PW_${add_list_fx}_INFO"
if [[ ! -z `echo " ${GET_FX_IN_FILE[@]} " | grep " ${add_list_fx} "` ]] ; then
ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%TRUE%"
else
ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%FALSE%"
fi
done
if [[ ! -z "${PW_VKBASALT_FFX_CAS}" ]] ; then
VKBASALT_FFX_CAS_GUI=`bc -s <<< "${PW_VKBASALT_FFX_CAS}*100" | sed 's/\..*//'`
else
VKBASALT_FFX_CAS_GUI=75
fi
export old_IFS=$IFS
export IFS="%"
"${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=5 --separator=" " \
${ADD_GUI_FX} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set" &
export IFS="${old_IFS}"
"${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \
--field="AMD FidelityFX - Contrast Adaptive Sharpening":SCL "${VKBASALT_FFX_CAS_GUI}" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" &
"${pw_yad_new}" --paned --key="$KEY_FX_GUI" --height="500" --title="vkBasalt" --center --borders=10 \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
--button="CANCEL":1 --button="DISABLE VKBASALT":180 --button="ENABLE VKBASALT":182
YAD_VKBASALT_STATUS="$?"
case "${YAD_VKBASALT_STATUS}" in
1|252)
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0 ;;
180)
export ENABLE_VKBASALT=0 ;;
182)
export ENABLE_VKBASALT=1 ;;
esac
YAD_BASALT_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set"`
YAD_CAS_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" | sed s/" "//g`
INT_COUNT_FX=0
for read_list_fx in ${YAD_BASALT_SET} ; do
if [[ "$read_list_fx" == "TRUE" ]] ; then
export GUI_FX_RESULT+=":${LIST_FX[$INT_COUNT_FX]}"
fi
export INT_COUNT_FX=$(( ${INT_COUNT_FX} + 1 ))
done
GUI_FX_RESULT="cas${GUI_FX_RESULT}"
export PW_VKBASALT_EFFECTS="${GUI_FX_RESULT}"
if [[ "$YAD_CAS_SET" == "0" ]] ; then
export PW_VKBASALT_FFX_CAS="0"
elif [[ "$YAD_CAS_SET" == "100" ]] ; then
export PW_VKBASALT_FFX_CAS="1"
else
export PW_VKBASALT_FFX_CAS="0`bc -s <<< "scale=2; $YAD_CAS_SET/100"`"
fi
edit_db_from_gui PW_VKBASALT_EFFECTS PW_VKBASALT_FFX_CAS ENABLE_VKBASALT
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
#!/bin/bash
#!/usr/bin/env bash
# Author: Castro-Fidel (PortWINE-Linux.ru)
# License MIT
########################################################################
unset PW_AUTOPLAY PW_SET_LANG PW_SILENT_INSTALL
......@@ -10,7 +11,7 @@ deflink="${HOME}/PortWINE/${portname}"
if [ "$(dirname "`readlink -f "$0"`")" == "/usr/bin" ] ; then
[ -z "${XDG_DATA_HOME}" ] && export XDG_DATA_HOME="$HOME/.local/share"
if [ -f "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" ] ; then
/bin/bash "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" "$@"
/usr/bin/env bash "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" "$@"
exit 0
else
if [ ! -z "`locale | grep "LANG=ru_RU.UTF-8"`" ] ; then
......@@ -156,5 +157,5 @@ fi
chmod 755 -R "${PORT_WINE_PATH}"
########################################################################
cd "${PORT_WINE_PATH}/data/scripts"
/bin/bash "${PORT_WINE_PATH}/data/scripts/setup.sh" && exit 0
/usr/bin/env bash "${PORT_WINE_PATH}/data/scripts/setup.sh" && exit 0
################################ARCH_BIN################################
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