Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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
Vladislav
PortWINE-old
Commits
8d1c5efe
Commit
8d1c5efe
authored
5 years ago
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto configuration PBA and ESYNC. Add check version GLIBC and auto change WINE folder
parent
97f0c1e2
master
Add-version-selection-support-OpenGL
RU-locale-gallium-zink
add-no-location
add-old-tray
added-full-disable
added-main-menu
added-main-menu1
added-ppdb
added-repair
added-reset
added-reset-userconf
added-skip-updates
added-timeout
added-try_copy_file_with_checksums
added-unset
added-upper-case
added_SKIP_CHECK_UPDATES_NEW
added_restart_stop
allow_use_vkd3d
assoc-mass
auto-shortcuts
branch-version
cancel-shortcut
center-fixed-gnome
center-xfce
correct-code
correct-sort-(mini-fix)
debug
debug-filesystems
del-shortcuts
devel
devel-time
dgvoodoo2
dgvoodoo2-settings
drop-auto-close
drop-basename
drop-center-gnome
drop-convert
drop-legacy
drop-legacy-api
find_exe
fix
fix-bat-files
fix-bug
fix-bug-elieyna
fix-debug
fix-gamescope
fix-if-empty
fix-locales
fix-spellcheck-0.1
fix-themes
fix-vkbasalt-flatpak
fix-zink2
fixed-center
fixed-combobox-gpu
fixed-for-autoshortcut
fixed-for-steam
fixed-for-steam-dev
fixed-gettext
fixed-remove-desktop
fixed-vulkaninfo
fixed-xrandr
fixes
fixes-new
fixnine-withgamescope
flatpak-debug
for-tray
forced-all-api
gallium-zink-move
gamescope
gamescope-changes
gamescope-version
gamescope2
gamescope3
gamescope4
gemma2-1
gettext
gettext-winetricks
gui_edit_db_file
gui_user_conf
improve_updates
master-time
merge-need
merge-pw_edit_db
merged-combobox-fix
minor-fixes-new
modern-try-copy
notebook-settings
optimized
optimized2
print-wrapped
pw-tray-for-wayland
refact-pw-edit
saved-state-shortcut
selection-text-for-gs-flatpak
silent-curl
skip_vulkaninfo
sort
speedup_mangohud
spellcheck_and_fixes
split-commits
start.sh-1
temporary-fix-dx12-dgv2
update-3d-api
update-checksums
update-debug-timer
update-gettext
update-lang
update-notify
update-sort
update-tray_pp
update-yad
update-yad2
update-yad3
use-array
use-tmpfs
userconf-settings
vkd3d_for_dgv2
yad-updates
yad-updates2
zink-opengl
¬-not-working
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
47 deletions
+61
-47
debug
portwine_run_scripts/debug
+1
-1
runlib
portwine_run_scripts/runlib
+56
-24
setup
portwine_run_scripts/setup
+1
-1
vars
portwine_run_scripts/vars
+3
-21
No files found.
portwine_run_scripts/debug
View file @
8d1c5efe
...
...
@@ -56,7 +56,7 @@ echo "Version WINE in the Port" >> "${PORT_WINE_PATH}/${portname}.log"
echo
"--------------------------------------------"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"log WINE"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
export
WINEDEBUG
=
"
warn+
all"
export
WINEDEBUG
=
"
err+all,fixme-
all"
export
VK_LOADER_DEBUG
=
-all
export
DXVK_LOG_LEVEL
=
"info"
export
VKD3D_DEBUG
=
"warn"
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/runlib
View file @
8d1c5efe
#!/bin/bash
# Author: PortWINE-Linux.ru
[
$(
id
-u
)
-eq
0
]
&&
echo
"Do not run th
e script from the superuser!"
&&
zenity
--error
--text
"Do not run the script from the superuser
!"
&&
exit
1
[
$(
id
-u
)
-eq
0
]
&&
echo
"Do not run th
is script as root!"
&&
zenity
--error
--text
"Do not run this script as root
!"
&&
exit
1
for
PROGS
in
"xterm"
"wget"
"curl"
do
...
...
@@ -56,61 +56,82 @@ export PATH_OLD="$PATH"
.
"
${
link
}
"
/lang
########################################################################
if
[
!
-d
"
${
PORT_WINE_PATH
}
/data/wine/lib64"
]
GLIBC_REQUIRED
=
2.27
GLIBC_VERSION
=
"
$(
ldd
--version
|
head
-n1
|
sed
's/\(.*\) //g'
|
sed
's/\.[^.]*//2g'
)
"
if
[
"
$(
echo
"
${
GLIBC_VERSION
//./
}
"
)
"
-lt
"
$(
echo
"
${
GLIBC_REQUIRED
//./
}
"
)
"
]
;
then
WINEDIR
=
"
${
PORT_WINE_PATH
}
"
/data/wine_glibc_223
else
WINEDIR
=
"
${
PORT_WINE_PATH
}
"
/data/wine_glibc_227
fi
########################################################################
if
[
!
-d
"
${
WINEDIR
}
/lib64"
]
then
export
WINEARCH
=
win32
export
WINELOADER
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/wine"
export
WINEDLLPATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib/wine
export
WINELOADER
=
"
${
WINEDIR
}
/bin/wine"
export
WINEDLLPATH
=
"
${
WINEDIR
}
/lib/wine"
if
[
"
$runtime_libs
"
-eq
"1"
]
then
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib_i386:
"
${
PORT_WINE_PATH
}
"
/data/wine
/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
${
WINEDIR
}
/runtime-lib_i386:
${
WINEDIR
}
/lib:
${
LD_LIBRARY_PATH
}
else
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine
/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
${
WINEDIR
}
/lib:
${
LD_LIBRARY_PATH
}
fi
else
export
WINEARCH
=
win64
export
WINELOADER
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/wine64"
export
WINEDLLPATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64/wine
export
WINELOADER
=
"
${
WINEDIR
}
/bin/wine64"
export
WINEDLLPATH
=
"
${
WINEDIR
}
/lib64/wine"
if
[
"
$runtime_libs
"
-eq
"1"
]
then
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib_x86_64:
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib_i386:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64:
"
${
PORT_WINE_PATH
}
"
/data/wine
/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
${
WINEDIR
}
/runtime-lib_x86_64:
${
WINEDIR
}
/runtime-lib_i386:
${
WINEDIR
}
/lib64:
${
WINEDIR
}
/lib:
${
LD_LIBRARY_PATH
}
else
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64:
"
${
PORT_WINE_PATH
}
"
/data/wine
/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
${
WINEDIR
}
/lib64:
${
WINEDIR
}
/lib:
${
LD_LIBRARY_PATH
}
fi
fi
if
[
-d
"
${
PORT_WINE_PATH
}
/data/wine/include"
]
then
export
C_INCLUDE_PATH
=
"
${
PORT_WINE_PATH
}
/data/wine/include"
fi
if
[
!
-e
"
${
PORT_WINE_PATH
}
/data/wine/share/wine/smb.conf"
]
if
[
!
-e
"
${
WINEDIR
}
/share/wine/smb.conf"
]
then
export
us_dir
=
"
$USER
"
export
STAGING_WRITECOPY
=
1
export
STAGING_SHARED_MEMORY
=
1
else
export
us_dir
=
"crossover"
fi
export
WINESERVER
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/wineserver"
export
WINECFG
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/winecfg"
export
WINEREG
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/regedit"
export
WINEOPEN
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/winefile"
export
WINEBOOT
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/wineboot"
export
WINECMD
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin/wineconsole"
export
WINESERVER
=
"
${
WINEDIR
}
/bin/wineserver"
export
WINECFG
=
"
${
WINEDIR
}
/bin/winecfg"
export
WINEREG
=
"
${
WINEDIR
}
/bin/regedit"
export
WINEOPEN
=
"
${
WINEDIR
}
/bin/winefile"
export
WINEBOOT
=
"
${
WINEDIR
}
/bin/wineboot"
export
WINECMD
=
"
${
WINEDIR
}
/bin/wineconsole"
export
WINEPREFIX
=
"
${
PORT_WINE_PATH
}
/data/prefix"
export
PATH
=
"
${
PORT_WINE_PATH
}
/data/wine
/bin"
:
${
PATH
}
export
PATH
=
"
${
WINEDIR
}
/bin"
:
${
PATH
}
export
WINESTART
=
"C:
\\
windows
\\
command
\\
start.exe"
export
urlg
=
"http://portwine-linux.ru/donate"
#export CORES="$(getconf _NPROCESSORS_ONLN)"
export
WINEFSYNC
=
1
export
PROTON_NO_FSYNC
=
0
# Check if Wine has PBA or ESYNC features
if
grep
PBA
"
${
WINEDIR
}
/lib/wine/wined3d.dll.so"
&>/dev/null
||
grep
PBA
"
${
WINEDIR
}
/lib64/wine/wined3d.dll.so"
&>/dev/null
;
then
PBA_ENABLE
=
1
else
PBA_ENABLE
=
0
fi
if
grep
ESYNC
"
${
WINEDIR
}
/lib/wine/ntdll.dll.so"
&>/dev/null
||
grep
ESYNC
"
${
WINEDIR
}
/lib64/wine/ntdll.dll.so"
&>/dev/null
;
then
if
!
ulimit
-n
500000 &>/dev/null
;
then
export
WINEESYNC
=
0
else
export
WINEESYNC
=
1
fi
fi
########################################################################
START_PORTWINE
()
{
chown
-R
"
$USER
"
"
$WINEPREFIX
/drive_c"
chown
-R
"
$USER
"
"
$WINEPREFIX
"
/
*
.reg
gpu
=
"0"
export
DRI_PRIME
=
1
...
...
@@ -174,6 +195,12 @@ then
else
echo
"DXVK is disabled"
fi
export
PROTON_USE_WINED3D
=
1
export
PROTON_USE_D9VK
=
0
export
DXVK_STATE_CACHE
=
0
export
__GL_SHADER_DISK_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
export
__GL_SHADER_DISK_CACHE
=
1
export
mesa_glthread
=
"true"
}
########################################################################
...
...
@@ -187,6 +214,11 @@ else
sh
"
${
link
}
/winetricks"
-q
--force
dxvk
echo
"DXVK is enabled"
>
"
${
config_path
}
/dxvk"
fi
export
PROTON_USE_WINED3D
=
0
export
__GL_SHADER_DISK_CACHE
=
0
export
DXVK_STATE_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
export
DXVK_STATE_CACHE
=
1
export
mesa_glthread
=
"false"
}
########################################################################
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/setup
View file @
8d1c5efe
...
...
@@ -55,7 +55,7 @@ echo ""[Desktop Entry]"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/
${
name_desktop
}
.desktop"
done
for
name_desktop
in
"remove"
for
name_desktop
in
"remove"
"debug"
do
echo
""
[
Desktop Entry]
"
"
Name
=
${
name_desktop
}
"
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/vars
View file @
8d1c5efe
...
...
@@ -15,8 +15,6 @@ WINE_DX_TO_OPENGL ()
export
launch_parameters
=
""
export
WINEDLLOVERRIDES
=
"winemenubuilder.exe=d"
export
PROTON_OLD_GL_STRING
=
0
export
PROTON_USE_WINED3D
=
1
export
PROTON_USE_D9VK
=
0
}
########################################################################
WINE_DX_TO_VULKAN
()
...
...
@@ -24,33 +22,17 @@ WINE_DX_TO_VULKAN ()
export
launch_parameters
=
""
export
WINEDLLOVERRIDES
=
"winemenubuilder.exe=d"
export
DXVK_HUD
=
fps
export
PROTON_USE_D9VK
=
1
export
PROTON_USE_WINED3D
=
0
#export PROTON_USE_D9VK=1
}
###PROTON#
export
PROTON_FORCE_LARGE_ADDRESS_AWARE
=
1
###.NVIDIA.###
#export LD_PRELOAD="libpthread.so.0 libGL.so.1"
#export __GL_THREADED_OPTIMIZATIONS=1
export
__GL_SHADER_DISK_CACHE
=
1
export
__GL_SHADER_DISK_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
#export __GL_SYNC_TO_VBLANK=0
###.MESA.###
export
mesa_glthread
=
"true"
#export vblank_mode=0
###.ESYNC and FSYNC.###
export
WINEESYNC
=
0
export
PROTON_NO_ESYNC
=
1
export
WINEFSYNC
=
1
export
PROTON_NO_FSYNC
=
0
###.PBA.###
export
PBA_DISABLE
=
1
export
__PBA_CB_HEAP
=
128
export
__PBA_GEO_HEAP
=
512
###.OTHER.###
export
PROTON_FORCE_LARGE_ADDRESS_AWARE
=
0
export
STAGING_SHARED_MEMORY
=
1
export
WINEDEBUG
=
"-all"
export
Xserv
=
2
#export PULSE_LATENCY_MSEC=60
########################################################################
ADD_IN_START_PORTWINE
()
{
...
...
This diff is collapsed.
Click to expand it.
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