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
97f0c1e2
Commit
97f0c1e2
authored
5 years ago
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update debug and vars scripts
parent
f9a03c4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
65 additions
and
66 deletions
+65
-66
debug
portwine_run_scripts/debug
+18
-3
lang
portwine_run_scripts/lang
+1
-1
port_update
portwine_run_scripts/port_update
+4
-8
remove
portwine_run_scripts/remove
+2
-1
runlib
portwine_run_scripts/runlib
+3
-3
setup
portwine_run_scripts/setup
+8
-15
start
portwine_run_scripts/start
+2
-1
start_settings
portwine_run_scripts/start_settings
+3
-17
stop
portwine_run_scripts/stop
+1
-1
vars
portwine_run_scripts/vars
+17
-10
wineboot
portwine_run_scripts/wineboot
+1
-1
winecfg
portwine_run_scripts/winecfg
+1
-1
winecmd
portwine_run_scripts/winecmd
+1
-1
winefile
portwine_run_scripts/winefile
+1
-1
winereg
portwine_run_scripts/winereg
+1
-1
winetricks
portwine_run_scripts/winetricks
+0
-0
winetricks-q-force
portwine_run_scripts/winetricks-q-force
+1
-1
No files found.
portwine_run_scripts/debug
View file @
97f0c1e2
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
if
[
-e
"
${
config_path
}
/dxvk"
]
then
START_PORTWINE
WINE_DX_TO_VULKAN
VULKAN_SET
else
START_PORTWINE
WINE_DX_TO_OPENGL
OPENGL_SET
fi
echo
"
${
port_deb1
}
"
>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"
${
port_deb2
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"--------------------------------------------"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
...
@@ -43,9 +56,11 @@ 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
=
"
fixme-all,+vulkan,-trace
"
export
WINEDEBUG
=
"
warn+all
"
export
VK_LOADER_DEBUG
=
-all
export
DXVK_LOG_LEVEL
=
debug
export
DXVK_LOG_LEVEL
=
"info"
export
VKD3D_DEBUG
=
"warn"
export
DXVK_HUD
=
"fps,devinfo"
"
${
optirun_on
}
"
"
${
WINELOADER
}
"
"
${
gamestart
}
"
"
${
launch_parameters
}
"
2>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/lang
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
read
"update_loc"
<
"
${
config_path
}
/
${
portname
}
_loc"
export
update_loc
=
${
update_loc
}
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/port_update
View file @
97f0c1e2
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
if
[
!
-f
"
${
config_path
}
/
${
portname
}
_ver"
]
then
echo
"10"
>
"
${
config_path
}
/
${
portname
}
_ver"
...
...
@@ -61,11 +62,6 @@ else
else
case
$xsd2
in
"
${
port_time4
}
"
)
if
[
"
${
update_loc
}
"
=
"ENG"
]
then
urlg
=
"https://www.patreon.com/portwinelinux"
fi
if
[
!
-z
"
$(
command
-v
sensible-browser
)
"
]
;
then
sensible-browser
"
$urlg
"
&
elif
[
!
-z
"
$(
command
-v
xdg-open
)
"
]
;
then
...
...
@@ -75,12 +71,12 @@ else
elif
[
!
-z
"
$(
command
-v
python
)
"
]
;
then
python
-m
webbrowser
"
$urlg
"
fi
&
echo
"
9
0"
>
"
${
HOME
}
/.config/.PortTime"
echo
"
15
0"
>
"
${
HOME
}
/.config/.PortTime"
sleep
5
;;
"
${
port_time5
}
"
)
echo
"30"
>
"
${
HOME
}
/.config/.PortTime"
;;
"
${
port_time6
}
"
)
echo
"
6
0"
>
"
${
HOME
}
/.config/.PortTime"
;;
echo
"
8
0"
>
"
${
HOME
}
/.config/.PortTime"
;;
esac
fi
fi
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/remove
View file @
97f0c1e2
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
xsd
=
`
zenity
--title
"
${
port_del1
}
"
--text
"
${
port_del2
}
"
\
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/runlib
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
[
$(
id
-u
)
-eq
0
]
&&
echo
"Do not run the script from the superuser!"
&&
zenity
--error
--text
"Do not run the script from the superuser!"
&&
exit
1
...
...
@@ -63,7 +63,7 @@ then
export
WINEDLLPATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib/wine
if
[
"
$runtime_libs
"
-eq
"1"
]
then
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib
_i386
:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib:
${
LD_LIBRARY_PATH
}
else
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib:
${
LD_LIBRARY_PATH
}
fi
...
...
@@ -73,7 +73,7 @@ else
export
WINEDLLPATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64/wine
if
[
"
$runtime_libs
"
-eq
"1"
]
then
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib_
64:
"
${
PORT_WINE_PATH
}
"
/data/wine/runtime-lib
:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib:
${
LD_LIBRARY_PATH
}
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
}
else
export
LD_LIBRARY_PATH
=
"
${
PORT_WINE_PATH
}
"
/data/wine/lib64:
"
${
PORT_WINE_PATH
}
"
/data/wine/lib:
${
LD_LIBRARY_PATH
}
fi
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/setup
View file @
97f0c1e2
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
rm
-fR
"
${
PORT_WINE_PATH
}
/Games"
...
...
@@ -41,7 +42,7 @@ chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
rm
-fR
"
${
PORT_WINE_PATH
}
/Settings"
mkdir
-p
"
${
PORT_WINE_PATH
}
/Settings"
for
name_desktop
in
"winecfg"
"winereg"
"winefile"
"wineboot"
"stop"
"winecmd"
for
name_desktop
in
"winecfg"
"winereg"
"winefile"
"wineboot"
"stop"
"winecmd"
"start_settings"
do
echo
""
[
Desktop Entry]
"
"
Name
=
${
name_desktop
}
"
...
...
@@ -77,24 +78,16 @@ echo ""[Desktop Entry]"
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/s.png"""
>
"
${
PORT_WINE_PATH
}
/Settings/winetricks.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/winetricks.desktop"
echo
""
[
Desktop Entry]
"
"
Name
=
start_settings
"
"
Exec
=
"
${
PORT_WINE_PATH
}
/data/scripts/start_settings""
"
Type
=
Application
"
"
Categories
=
Game
"
"
StartupNotify
=
true
"
"
Path
=
"
${
PORT_WINE_PATH
}
/data/scripts/""
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/s.png"""
>
"
${
PORT_WINE_PATH
}
/Settings/start_settings.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/start_settings.desktop"
cp
-f
"
${
PORT_WINE_PATH
}
/data/prefix/reg.xuser/"
*
"
${
PORT_WINE_PATH
}
/data/prefix/"
sed
-i
"s/crossover/
$us_dir
/g"
"
${
PORT_WINE_PATH
}
/data/prefix/"
*
.reg
sed
-i
"s/xuser/
${
USER
}
/g"
"
${
PORT_WINE_PATH
}
/data/prefix/"
*
.reg
cp
-fR
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/users/Public/"
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/users/
$us_dir
/"
if
[
!
-d
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/users/steamuser/"
]
then
cp
-fR
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/users/Public/"
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/users/
$us_dir
/"
fi
ln
-s
f
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/"
"
${
PORT_WINE_PATH
}
/drive_c"
ln
-s
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/"
"
${
PORT_WINE_PATH
}
/drive_c"
ADD_IN_POST_INSTALL
sh
"
${
link
}
/start_settings"
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/start
View file @
97f0c1e2
#!/bin/bash
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
sh
"
${
link
}
"
/start_settings
This diff is collapsed.
Click to expand it.
portwine_run_scripts/start_settings
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
########################################################################
sszen
()
{
zenity
--progress
--title
=
"Settings..."
--text
=
"Updating start parameters"
--pulsate
--auto-close
--auto-kill
--width
=
450
...
...
@@ -42,10 +42,8 @@ cat > "${link}/start" <<EOF
. "\
$(
dirname
\$
(
readlink
-f
"
\$
0"
)
)/runlib"
xsd=\`zenity --title "\
${
port_start1
}
" --text "\
${
port_start2
}
" --list --radiolist --height=260 \\
--column="\
${
inst_set
}
" --column "\
${
port_start3
}
" \\
FALSE "\
${
port_start4
}
" \\
TRUE "\
${
port_start8
}
" \\
FALSE "\
${
port_start6
}
(\
${
port_start4
}
)" \\
FALSE "\
${
port_start6
}
(DXVK)" \`
TRUE "\
${
port_start4
}
" \\
FALSE "\
${
port_start8
}
" \`
if [ \
$?
-eq 1 ];then exit 1; fi
case \
$xsd
in
...
...
@@ -55,18 +53,6 @@ case \$xsd in
OPENGL_SET
"\
${
optirun_on
}
" "\
${
WINELOADER
}
" "\
${
gamestart
}
" "\
${
launch_parameters
}
" ;;
"\
${
port_start6
}
(\
${
port_start4
}
)")
START_PORTWINE
WINE_DX_TO_OPENGL
OPENGL_SET
. "\
${
link
}
/debug" ;;
"\
${
port_start6
}
(DXVK)")
START_PORTWINE
WINE_DX_TO_VULKAN
VULKAN_SET
. "\
${
link
}
/debug" ;;
"\
${
port_start8
}
")
START_PORTWINE
WINE_DX_TO_VULKAN
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/stop
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
"
${
WINESERVER
}
"
-k
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/vars
View file @
97f0c1e2
#!/bin/bash
# License GPL
# Author: Tergoev M.A.
# Author: PortWINE-Linux.ru
########################################################################
export
gamedir
=
"
WGC
"
export
gamename
=
"
WGC
"
export
portname
=
"
PortWGC
"
export
porturl
=
"http://portwine-linux.ru/port-
wargaming-game-center
/"
export
gamestart
=
"c:
\\
Games
\\
${
gamedir
}
\\
wgc
.exe"
export
gamedir
=
"
"
export
gamename
=
"
"
export
portname
=
"
"
export
porturl
=
"http://portwine-linux.ru/port-/"
export
gamestart
=
"c:
\\
Games
\\
${
gamedir
}
\\
.exe"
export
PATH_TO_GAME
=
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/Games/
${
gamedir
}
/"
########################################################################
export
runtime_libs
=
0
...
...
@@ -15,15 +14,21 @@ 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
()
{
export
launch_parameters
=
""
export
WINEDLLOVERRIDES
=
"winemenubuilder.exe=d"
export
DXVK_HUD
=
fps
export
VK_LOADER_DEBUG
=
""
export
DXVK_LOG_LEVEL
=
""
export
PROTON_USE_D9VK
=
1
export
PROTON_USE_WINED3D
=
0
}
###PROTON#
export
PROTON_FORCE_LARGE_ADDRESS_AWARE
=
1
###.NVIDIA.###
#export LD_PRELOAD="libpthread.so.0 libGL.so.1"
#export __GL_THREADED_OPTIMIZATIONS=1
...
...
@@ -35,7 +40,9 @@ 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
...
...
@@ -62,6 +69,6 @@ ADD_IN_POST_INSTALL ()
###################################################################
ADD_IN_POST_UNINSTALL
()
{
sed
-i
"s/true/false/g"
"
${
PORT_WINE_PATH
}
/data/prefix/drive_c/Games/WGC/preferences.xml
"
echo
"
"
}
This diff is collapsed.
Click to expand it.
portwine_run_scripts/wineboot
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
"
`
readlink
-f
"
$0
"
`
"
)
"
/runlib
rm
-f
${
link
}
/winetricks
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winecfg
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
runlib_path
=
"
$(
dirname
$(
readlink
-f
"
$0
"
))
"
/runlib
.
"
$runlib_path
"
START_PORTWINE
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winecmd
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
START_PORTWINE
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winefile
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
START_PORTWINE
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winereg
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
START_PORTWINE
...
...
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winetricks
View file @
97f0c1e2
This diff is collapsed.
Click to expand it.
portwine_run_scripts/winetricks-q-force
View file @
97f0c1e2
#!/bin/bash
# Author:
Tergoev M.A.
# Author:
PortWINE-Linux.ru
.
"
$(
dirname
"
`
readlink
-f
"
$0
"
`
"
)
"
/runlib
rm
-f
${
link
}
/winetricks
...
...
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