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
Vladislav
PortWINE
Commits
ce902b5d
Commit
ce902b5d
authored
Oct 11, 2020
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Major changes and add use FTP for libraries
parent
1642ff56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
20 deletions
+27
-20
runlib
data_from_portwine/scripts/runlib
+23
-17
vars
data_from_portwine/scripts/vars
+4
-3
No files found.
data_from_portwine/scripts/runlib
View file @
ce902b5d
...
...
@@ -22,6 +22,9 @@ export config_path="${PORT_WINE_PATH}/data/tmp"
if
[
!
-d
"
${
config_path
}
"
]
;
then
mkdir
-p
"
${
config_path
}
"
fi
if
[
!
-d
"
${
HOME
}
/.PortWINE/tmp"
]
;
then
mkdir
-p
"
${
HOME
}
/.PortWINE/tmp"
fi
if
[
!
-e
"
${
config_path
}
/
${
portname
}
_loc"
]
;
then
SET_LANG
=
`
zenity
--title
"Install
$portname
"
--text
"Select the language"
--list
--radiolist
\
--column
=
"Set:"
--column
"Language:"
\
...
...
@@ -37,7 +40,7 @@ fi
########################################################################
export
port_on_run
=
"
${
PORT_WINE_PATH
}
/data/port_on"
export
WINEDIR
=
"
${
PORT_WINE_PATH
}
"
/data/dist
export
WINELIB
=
"
${
PORT_WINE_PATH
}
"
/data/libs
export
WINELIB
=
"
${
HOME
}
/.PortWINE/libs"
export
WINEARCH
=
win64
export
WINELOADER
=
"
${
WINEDIR
}
/bin/wine"
export
WINEDLLPATH
=
"
${
WINEDIR
}
/lib64/wine:
${
WINEDIR
}
/lib/wine"
...
...
@@ -53,6 +56,13 @@ export urlg="http://portwine-linux.ru/donate"
START_PORTWINE
()
{
sh
"
${
PORT_SCRIPTS_PATH
}
"
/port_update
echo
"########################"
if
[
!
-d
"
${
WINELIB
}
"
]
;
then
echo
"Download and install libraries..."
wget
-T
2
--output-document
=
"
${
HOME
}
/.PortWINE/tmp/libs.tar.xz"
http://pubrepo.sllc.cloud/k1/files/dist/libs.tar.xz | sszen
&&
tar
-Jxvf
"
${
HOME
}
/.PortWINE/tmp/libs.tar.xz"
-C
"
${
HOME
}
/.PortWINE/"
| sszen
&&
rm
-f
"
${
HOME
}
/.PortWINE/tmp/libs.tar.xz"
fi
if
[
-d
"
${
WINELIB
}
"
]
;
then
host_lib_paths
=
/sbin/ldconfig
-XNv
|
grep
"/"
|
cut
-d
:
-f1
1>
"
${
config_path
}
"
/default_lib_paths
...
...
@@ -67,10 +77,10 @@ if [ -d "${WINELIB}" ]; then
export
LD_LIBRARY_PATH
=
"
$portwine_runtime_libs_paths
"
fi
echo
"########################"
echo
"
runtime lib
s is enabled"
echo
"
Runtime librarie
s is enabled"
else
echo
"########################"
echo
"
runtime lib
s is disabled"
echo
"
Runtime librarie
s is disabled"
fi
########################################################################
if
[
!
-f
"
${
config_path
}
/dxvk_on"
]
...
...
@@ -159,7 +169,6 @@ if [ ! -z "${PW_NVIDIA}" ] && [ "${check_optimus_manager}" != "intel" ]; then
fi
export
__NV_PRIME_RENDER_OFFLOAD
=
1
export
__GLX_VENDOR_LIBRARY_NAME
=
nvidia
export
__GL_SYNC_TO_VBLANK
=
0
export
__GL_SHADER_DISK_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
export
__GL_SHADER_DISK_CACHE
=
1
export
__GL_SHADER_DISK_CACHE_SIZE
=
1000000000
...
...
@@ -167,19 +176,17 @@ if [ ! -z "${PW_NVIDIA}" ] && [ "${check_optimus_manager}" != "intel" ]; then
export
__GL_DXVK_OPTIMIZATIONS
=
1
else
export
DRI_PRIME
=
1
export
vblank_mode
=
0
# export MESA_GLSL_CACHE_DIR="${PATH_TO_GAME}"
# export mesa_glthread=true
export
PW_AMD_ATI
=
"
$(
lspci |
grep
AMD/ATI
)
"
if
[
!
-z
"
${
PW_AMD_ATI
}
"
]
;
then
if
[
"
${
PW_ACO
}
"
=
"1"
]
;
then
export
RADV_PERFTEST
=
aco
echo
"ACO is enabled"
else
echo
"ACO is disabled"
fi
fi
fi
case
"
$PW_FORCE_USE_VSYNC
"
in
# 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
"0"
)
export
vblank_mode
=
0
export
__GL_SYNC_TO_VBLANK
=
0
;;
"1"
)
export
vblank_mode
=
1
export
__GL_SYNC_TO_VBLANK
=
1
;;
esac
export
DXVK_CONFIG_FILE
=
"
${
PORT_WINE_PATH
}
/data/dxvk.conf"
########################################################################
export
def_pfx
=
"
${
PORT_WINE_PATH
}
/data/dist/share/default_pfx/"
...
...
@@ -192,15 +199,14 @@ if [ $(pgrep xneur)>'0' ]; then
export
int_xneur
=
1
fi
########################################################################
if
[
-x
"
`
which
"gamemoderun"
2>/dev/null
`
"
]
;
then
sleep
1
if
[
-x
"
`
which
"gamemoderun"
2>/dev/null
`
"
]
&&
[
"
$PW_FORCE_DISABLED_GAMEMOD
"
-eq
"0"
]
;
then
systemctl
--user
enable
gamemoded.service
systemctl
--user
restart gamemoded.service
export
PW_GAMEMODERUN
=
1
echo
"Gamemod will be launched."
else
export
PW_GAMEMODERUN
=
0
echo
"Gamemod
not installed!
"
echo
"Gamemod
is not installed or disabled in vars script: PW_FORCE_DISABLED_GAMEMOD=
$PW_FORCE_DISABLED_GAMEMOD
"
fi
echo
"########################"
ADD_IN_START_PORTWINE
...
...
data_from_portwine/scripts/vars
View file @
ce902b5d
...
...
@@ -12,10 +12,9 @@ export gamestart="${PATH_TO_GAME}/.exe"
export
porturl
=
"http://portwine-linux.ru/"
########################################################################
#export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
export
STAGING_SHARED_MEMORY
=
1
export
WINEDLLOVERRIDES
=
"winemenubuilder.exe=d"
export
PW_LOG
=
0
export
PW_
ACO
=
1
export
STAGING_SHARED_MEMORY
=
1
export
PW_
LOG
=
0
# 1-ENABLE_DEBUG_MODE_FOR_TERMINAL
export
PW_NO_VR
=
1
export
PW_NO_FSYNC
=
0
export
PW_NO_ESYNC
=
1
...
...
@@ -26,8 +25,10 @@ export PW_USE_SECCOMP=0
export
PW_NO_WINEMFPLAY
=
1
export
PW_NVAPI_DISABLE
=
1
export
PW_NO_WRITE_WATCH
=
1
export
PW_FORCE_USE_VSYNC
=
2
# 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
export
PW_WINEDBG_DISABLE
=
1
export
PW_PULSE_LOWLATENCY
=
0
export
PW_FORCE_DISABLED_GAMEMOD
=
0
export
PW_FORCE_LARGE_ADDRESS_AWARE
=
1
########################################################################
ADD_IN_START_PORTWINE
()
...
...
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