Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
c946de61
Commit
c946de61
authored
Mar 18, 2023
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scripts version 2174
parent
60d8ac4b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
17 deletions
+36
-17
changelog_eng
data_from_portwine/changelog_eng
+6
-0
changelog_rus
data_from_portwine/changelog_rus
+7
-0
functions_helper
data_from_portwine/scripts/functions_helper
+4
-1
runlib
data_from_portwine/scripts/runlib
+8
-4
start.sh
data_from_portwine/scripts/start.sh
+8
-9
var
data_from_portwine/scripts/var
+3
-3
No files found.
data_from_portwine/changelog_eng
View file @
c946de61
...
@@ -2,6 +2,12 @@ You can help us in the development of the project on the website: boosty.to/linu
...
@@ -2,6 +2,12 @@ You can help us in the development of the project on the website: boosty.to/linu
-----------------------------------------
-----------------------------------------
Changelog:
Changelog:
###Scripts version 2174###
* updated versions:
PROTON_LG="7-51"
PROTON_GE="7-51"
* minor improvements and optimization of scripts
###Scripts version 2173###
###Scripts version 2173###
* added saving the size of the PortProton main menu window
* added saving the size of the PortProton main menu window
...
...
data_from_portwine/changelog_rus
View file @
c946de61
...
@@ -2,6 +2,13 @@
...
@@ -2,6 +2,13 @@
-----------------------------------------
-----------------------------------------
История изменений:
История изменений:
###Scripts version 2174###
* обновлены версии:
PROTON_LG="7-51"
PROTON_GE="7-51"
* добавлена переменная PW_USE_GSTREAMER в настройки запуска для включения/выключения gstreamer (воспроизведение видео в играх)
* небольшие улучшения PortProton
###Scripts version 2173###
###Scripts version 2173###
* добавлено сохранение размера окна главного меню PortProton (необходим пакет wmctrl установленный в системе)
* добавлено сохранение размера окна главного меню PortProton (необходим пакет wmctrl установленный в системе)
...
...
data_from_portwine/scripts/functions_helper
View file @
c946de61
...
@@ -994,8 +994,11 @@ pw_find_exe () {
...
@@ -994,8 +994,11 @@ pw_find_exe () {
--text
=
"
\n
${
loc_gui_create_shortcut_for_exe
}
"
--column
=
"path to .exe file:"
${
FIND_TO_GUI
})
"
--text
=
"
\n
${
loc_gui_create_shortcut_for_exe
}
"
--column
=
"path to .exe file:"
${
FIND_TO_GUI
})
"
YAD_STATUS
=
"
$?
"
YAD_STATUS
=
"
$?
"
print_var YAD_STATUS
print_var YAD_STATUS
if
[[
"
$YAD_STATUS
"
==
"1"
||
"
$YAD_STATUS
"
==
"252"
||
-z
"
${
PW_SET_FIND_EXE
}
"
]]
;
then
if
[[
"
$YAD_STATUS
"
==
"1"
||
"
$YAD_STATUS
"
==
"252"
]]
;
then
if
[[
-z
"
${
PW_SET_FIND_EXE
}
"
]]
;
then
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
echo
"Restarting..."
fi
exit
0
exit
0
fi
fi
IFS
=
$OrigIFS
IFS
=
$OrigIFS
...
...
data_from_portwine/scripts/runlib
View file @
c946de61
...
@@ -129,15 +129,19 @@ start_portwine () {
...
@@ -129,15 +129,19 @@ start_portwine () {
export
WINE_HIDE_NVIDIA_GPU
=
0
export
WINE_HIDE_NVIDIA_GPU
=
0
elif
[[
!
-z
"
${
PW_USE_NVAPI_AND_DLSS
}
"
&&
"
${
PW_USE_NVAPI_AND_DLSS
}
"
==
1
]]
&&
[[
-d
"
${
WINEDIR
}
/lib/wine/nvapi/"
]]
elif
[[
!
-z
"
${
PW_USE_NVAPI_AND_DLSS
}
"
&&
"
${
PW_USE_NVAPI_AND_DLSS
}
"
==
1
]]
&&
[[
-d
"
${
WINEDIR
}
/lib/wine/nvapi/"
]]
then
then
if
!
try_force_link_file
"
${
WINEDIR
}
/lib/wine/nvapi/nvapi.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/syswow64/"
;
then
try_force_link_file
"
${
PW_PLUGINS_PATH
}
/nvapi/x32/nvapi.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/syswow64/"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
/nvapi/x32/nvapi.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/syswow64/"
fi
if
!
try_force_link_file
"
${
WINEDIR
}
/lib64/wine/nvapi/nvapi64.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
;
then
try_force_link_file
"
${
PW_PLUGINS_PATH
}
/nvapi/x64/nvapi64.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
/nvapi/x64/nvapi64.dll"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
fi
try_remove_file
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvngx.ini"
try_remove_file
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvngx.ini"
var_winedlloverride_update
"nvapi,nvapi64
,nvml=n;nvcuda
=b"
var_winedlloverride_update
"nvapi,nvapi64
=n;nvml,nvcuda,nvcuvid
=b"
if
[[
!
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvngx.dll"
||
!
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/_nvngx.dll"
]]
;
then
if
[[
!
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvngx.dll"
||
!
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/_nvngx.dll"
]]
;
then
try_copy_file
`
find /usr/
*
-type
f
-name
"nvngx.dll"
2>/dev/null |
awk
'{print $1}'
|
grep
'/lib/'
`
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
try_copy_file
`
find /usr/
*
-type
f
-name
"nvngx.dll"
2>/dev/null |
awk
'{print $1}'
|
grep
'/lib/'
`
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
try_copy_file
`
find /usr/
*
-type
f
-name
"_nvngx.dll"
2>/dev/null |
awk
'{print $1}'
|
grep
'/lib/'
`
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
try_copy_file
`
find /usr/
*
-type
f
-name
"_nvngx.dll"
2>/dev/null |
awk
'{print $1}'
|
grep
'/lib/'
`
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/"
fi
fi
echo
"Try link nvml.dll.so to prefix"
#
echo "Try link nvml.dll.so to prefix"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
"
/nvml/lib/wine/nvml.dll.so
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/syswow64/nvml.dll"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
"
/nvml/lib/wine/nvml.dll.so
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/syswow64/nvml.dll"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
"
/nvml/lib64/wine/nvml.dll.so
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvml.dll"
try_force_link_file
"
${
PW_PLUGINS_PATH
}
"
/nvml/lib64/wine/nvml.dll.so
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/windows/system32/nvml.dll"
export
DXVK_NVAPIHACK
=
0
export
DXVK_NVAPIHACK
=
0
...
@@ -171,10 +175,10 @@ start_portwine () {
...
@@ -171,10 +175,10 @@ start_portwine () {
[[
!
-z
"
${
PW_MANGOHUD_USER_CONF
}
"
&&
"
${
PW_MANGOHUD_USER_CONF
}
"
!=
0
]]
&&
unset
MANGOHUD_CONFIG
[[
!
-z
"
${
PW_MANGOHUD_USER_CONF
}
"
&&
"
${
PW_MANGOHUD_USER_CONF
}
"
!=
0
]]
&&
unset
MANGOHUD_CONFIG
if
[[
!
-z
"
${
PW_USE_DXR11
}
"
&&
"
${
PW_USE_DXR11
}
"
!=
0
]]
;
then
if
[[
!
-z
"
${
PW_USE_DXR11
}
"
&&
"
${
PW_USE_DXR11
}
"
!=
0
]]
;
then
var_vkd3d_config_update dxr11
var_vkd3d_config_update dxr11
var_radv_perftest_config_update rt
var_radv_perftest_config_update rt
,gpl
elif
[[
!
-z
"
${
PW_USE_DXR10
}
"
&&
"
${
PW_USE_DXR10
}
"
!=
0
]]
;
then
elif
[[
!
-z
"
${
PW_USE_DXR10
}
"
&&
"
${
PW_USE_DXR10
}
"
!=
0
]]
;
then
var_vkd3d_config_update dxr
var_vkd3d_config_update dxr
var_radv_perftest_config_update rt
var_radv_perftest_config_update rt
,gpl
fi
fi
export
optirun_on
=
""
export
optirun_on
=
""
export
check_optimus_manager
=
export
check_optimus_manager
=
...
...
data_from_portwine/scripts/start.sh
View file @
c946de61
...
@@ -190,8 +190,7 @@ portwine_start_debug () {
...
@@ -190,8 +190,7 @@ portwine_start_debug () {
unset
PW_TIMER
unset
PW_TIMER
while
read
-r
line
||
[[
-n
$(
pgrep
-a
yad |
grep
"yad_new --text-info --tail --button="
STOP
":0 --title="
DEBUG
""
|
awk
'{print $1}'
)
]]
;
do
while
read
-r
line
||
[[
-n
$(
pgrep
-a
yad |
grep
"yad_new --text-info --tail --button="
STOP
":0 --title="
DEBUG
""
|
awk
'{print $1}'
)
]]
;
do
sleep
0.005
sleep
0.005
if
[[
-n
"
${
line
}
"
]]
&&
[[
-z
"
$(
echo
"
${
line
}
"
|
grep
-i
"gstreamer"
)
"
]]
\
if
[[
-n
"
${
line
}
"
]]
&&
[[
-z
"
$(
echo
"
${
line
}
"
|
grep
-i
"kerberos"
)
"
]]
\
&&
[[
-z
"
$(
echo
"
${
line
}
"
|
grep
-i
"kerberos"
)
"
]]
\
&&
[[
-z
"
$(
echo
"
${
line
}
"
|
grep
-i
"ntlm"
)
"
]]
&&
[[
-z
"
$(
echo
"
${
line
}
"
|
grep
-i
"ntlm"
)
"
]]
then
then
echo
"#
${
line
}
"
echo
"#
${
line
}
"
...
@@ -205,7 +204,6 @@ portwine_start_debug () {
...
@@ -205,7 +204,6 @@ portwine_start_debug () {
kill_portwine
kill_portwine
# sleep 1 && zenity --info --title "DEBUG" --text "${port_debug}" --no-wrap &> /dev/null && kill_portwine
# sleep 1 && zenity --info --title "DEBUG" --text "${port_debug}" --no-wrap &> /dev/null && kill_portwine
sed
-i
'/.fx$/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/.fx$/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/GStreamer/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/kerberos/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/kerberos/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/ntlm/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/ntlm/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/HACK_does_openvr_work/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/HACK_does_openvr_work/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
@@ -414,15 +412,15 @@ pw_create_prefix_backup () {
...
@@ -414,15 +412,15 @@ pw_create_prefix_backup () {
pw_edit_db
()
{
pw_edit_db
()
{
pw_gui_for_edit_db
\
pw_gui_for_edit_db
\
PW_MANGOHUD PW_MANGOHUD_x32 PW_MANGOHUD_USER_CONF ENABLE_VKBASALT PW_NO_ESYNC PW_NO_FSYNC PW_USE_DXR10 PW_USE_DXR11
\
PW_MANGOHUD PW_MANGOHUD_x32 PW_MANGOHUD_USER_CONF ENABLE_VKBASALT PW_NO_ESYNC PW_NO_FSYNC PW_USE_DXR10 PW_USE_DXR11
\
PW_USE_NVAPI_AND_DLSS PW_USE_FAKE_DLSS PW_WINE_FULLSCREEN_FSR PW_
OLD_GL_STRING PW_
HIDE_NVIDIA_GPU PW_VIRTUAL_DESKTOP PW_USE_TERMINAL
\
PW_USE_NVAPI_AND_DLSS PW_USE_FAKE_DLSS PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU PW_VIRTUAL_DESKTOP PW_USE_TERMINAL
\
PW_GUI_DISABLED_CS PW_USE_GAMEMODE PW_DX12_DISABLE PW_PRIME_RENDER_OFFLOAD PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME
\
PW_GUI_DISABLED_CS PW_USE_GAMEMODE PW_DX12_DISABLE PW_PRIME_RENDER_OFFLOAD PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME
\
PW_FORCE_LARGE_ADDRESS_AWARE PW_USE_SHADER_CACHE PW_USE_WINE_DXGI
PW_
USE_GSTREAMER PW_
FORCE_LARGE_ADDRESS_AWARE PW_USE_SHADER_CACHE PW_USE_WINE_DXGI
if
[
"
$?
"
==
0
]
;
then
if
[
"
$?
"
==
0
]
;
then
echo
"Restarting PP after update ppdb file..."
echo
"Restarting PP after update ppdb file..."
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
exit
0
fi
fi
# PW_WINE_ALLOW_XIM PW_FORCE_USE_VSYNC PW_WINEDBG_DISABLE PW_USE_
GSTREAMER PW_USE_
AMDVLK_DRIVER
# PW_WINE_ALLOW_XIM PW_FORCE_USE_VSYNC PW_WINEDBG_DISABLE PW_USE_AMDVLK_DRIVER
}
}
pw_autoinstall_from_db
()
{
pw_autoinstall_from_db
()
{
...
@@ -769,14 +767,15 @@ else
...
@@ -769,14 +767,15 @@ else
# --field=" Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/bethesda.png"!"":"FBTN" '@bash -c "button_click PW_BETHESDA"'
# --field=" Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/bethesda.png"!"":"FBTN" '@bash -c "button_click PW_BETHESDA"'
if
[[
`
which wmctrl
`
]]
&>/dev/null
;
then
if
[[
`
which wmctrl
`
]]
&>/dev/null
;
then
sleep
2
while
[[
$(
pgrep
-a
yad_new |
head
-n
1 |
awk
'{print $1}'
2>/dev/null
)
]]
;
do
while
[[
$(
pgrep
-a
yad_new |
head
-n
1 |
awk
'{print $1}'
2>/dev/null
)
]]
;
do
sleep
1
sleep
2
PW_MAIN_GUI_SIZE_TMP
=
"
$(
wmctrl
-lG
|
grep
PortProton-1.0 |
awk
'{print $5" "$6}'
2>/dev/null
)
"
PW_MAIN_GUI_SIZE_TMP
=
"
$(
wmctrl
-lG
|
grep
PortProton-1.0 |
awk
'{print $5" "$6}'
2>/dev/null
)
"
if
[[
-n
"
${
PW_MAIN_GUI_SIZE_TMP
}
"
]]
;
then
if
[[
-n
"
${
PW_MAIN_GUI_SIZE_TMP
}
"
]]
;
then
echo
"
${
PW_MAIN_GUI_SIZE_TMP
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_main_gui_size"
echo
"
${
PW_MAIN_GUI_SIZE_TMP
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_main_gui_size"
fi
fi
done
&
done
fi
fi
&
if
[[
-z
"
${
PW_ALL_DF
}
"
]]
;
then
if
[[
-z
"
${
PW_ALL_DF
}
"
]]
;
then
"
${
pw_yad_new
}
"
--key
=
$KEY
--notebook
--borders
=
5
--width
=
"
${
PW_MAIN_SIZE_W
}
"
--height
=
"
${
PW_MAIN_SIZE_H
}
"
--no-buttons
--auto-close
--center
\
"
${
pw_yad_new
}
"
--key
=
$KEY
--notebook
--borders
=
5
--width
=
"
${
PW_MAIN_SIZE_W
}
"
--height
=
"
${
PW_MAIN_SIZE_H
}
"
--no-buttons
--auto-close
--center
\
...
...
data_from_portwine/scripts/var
View file @
c946de61
#!/usr/bin/env bash
#!/usr/bin/env bash
#Author: Castro-Fidel (linux-gaming.ru)
#Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=217
3
#SCRIPTS_NEXT_VERSION=217
4
########################################################################
########################################################################
export
PW_MANGOHUD
=
0
export
PW_MANGOHUD
=
0
export
MANGOHUD_CONFIG
=
cpu_stats,cpu_temp,cpu_mhz,cpu_color
=
2e97cb,cpu_text
=
CPU,gpu_stats,gpu_temp,gpu_core_clock,gpu_mem_clock,vulkan_driver,gpu_name,gpu_color
=
2e9762,gpu_text
=
GPU,vram,vram_color
=
ad64c1,ram,ram_color
=
c26693,io_color
=
a491d3,frame_timing
=
1,frametime_color
=
00ff00,time,arch,wine,wine_color
=
eb5b5b,engine_color
=
eb5b5b,background_alpha
=
0.2,font_size
=
24,background_color
=
020202,text_color
=
ffffff,toggle_hud
=
Shift_R+F12,resolution,vkbasalt
export
MANGOHUD_CONFIG
=
cpu_stats,cpu_temp,cpu_mhz,cpu_color
=
2e97cb,cpu_text
=
CPU,gpu_stats,gpu_temp,gpu_core_clock,gpu_mem_clock,vulkan_driver,gpu_name,gpu_color
=
2e9762,gpu_text
=
GPU,vram,vram_color
=
ad64c1,ram,ram_color
=
c26693,io_color
=
a491d3,frame_timing
=
1,frametime_color
=
00ff00,time,arch,wine,wine_color
=
eb5b5b,engine_color
=
eb5b5b,background_alpha
=
0.2,font_size
=
24,background_color
=
020202,text_color
=
ffffff,toggle_hud
=
Shift_R+F12,resolution,vkbasalt
...
@@ -35,10 +35,10 @@ export PW_WINE_USE="PROTON_LG"
...
@@ -35,10 +35,10 @@ export PW_WINE_USE="PROTON_LG"
export
PW_PLUGINS_VER
=
"_v10"
export
PW_PLUGINS_VER
=
"_v10"
export
PW_FAKE_DLSS_VER
=
"091122"
export
PW_FAKE_DLSS_VER
=
"091122"
###WINE_PROTON_LG###
###WINE_PROTON_LG###
export
PW_LG_VER
=
"7-
49
"
export
PW_LG_VER
=
"7-
51
"
export
PW_PROTON_LG_VER
=
"PROTON_LG_
${
PW_LG_VER
}
"
export
PW_PROTON_LG_VER
=
"PROTON_LG_
${
PW_LG_VER
}
"
###WINE_PROTON_GE###
###WINE_PROTON_GE###
export
PW_GE_VER
=
"7-
49
"
export
PW_GE_VER
=
"7-
51
"
export
PW_PROTON_GE_VER
=
"PROTON_GE_
${
PW_GE_VER
}
"
export
PW_PROTON_GE_VER
=
"PROTON_GE_
${
PW_GE_VER
}
"
export
PW_WINE_FULLSCREEN_FSR
=
"1"
export
PW_WINE_FULLSCREEN_FSR
=
"1"
###DXVK_AND_VKD3D###
###DXVK_AND_VKD3D###
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment