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
e9cb9881
Commit
e9cb9881
authored
May 04, 2021
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
###Scripts version 1067###
parent
447c314d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
46 deletions
+47
-46
changelog
data_from_portwine/changelog
+5
-0
netprofm.dll
data_from_portwine/dist/lib/wine/netprofm.dll
+0
-0
netprofm.dll
data_from_portwine/dist/lib64/wine/netprofm.dll
+0
-0
autoinstall
data_from_portwine/scripts/autoinstall
+14
-11
runlib
data_from_portwine/scripts/runlib
+17
-26
start.sh
data_from_portwine/scripts/start.sh
+8
-8
var
data_from_portwine/scripts/var
+3
-1
No files found.
data_from_portwine/changelog
View file @
e9cb9881
...
...
@@ -15,6 +15,11 @@
* добавить контроль за окнами для правильного отключения прогресс бара
* зарабатывать на жизнь развитием проекта с помощью вашей подписки на https://boosty.to/portwine-linux.ru
-----------------------------------------
###Scripts version 1067###
* HOTFIX - удален аргумент /b при запуске приложений (fix для WGC)
* фикс запуска функции PW_OTHER_FIXES
* добавлена проверка повторной установки EVE Online из AUTOINSTALL
###Scripts version 1066###
* виртуальный рабочий стол включенный из db файла, или глобально из скрипта "var" исправно работает с любой игрой/программой
* фикс работы переменной "PW_GUI_DISABLED_CS=1" прописанной в .desktop файле
...
...
data_from_portwine/dist/lib/wine/netprofm.dll
0 → 100755
View file @
e9cb9881
File added
data_from_portwine/dist/lib64/wine/netprofm.dll
0 → 100755
View file @
e9cb9881
File added
data_from_portwine/scripts/autoinstall
View file @
e9cb9881
...
...
@@ -2,17 +2,17 @@
# Author: Castro-Fidel (PortWINE-Linux.ru)
########################################################################
export
PW_USER_TEMP
=
"
$WINEPREFIX
/drive_c/users/
${
USER
}
/Temp"
export
PW_FORCE_LARGE_ADDRESS_AWARE
=
0
export
PW_FORCE_DISABLED_GAMEMOD
=
1
export
PW_FORCE_LARGE_ADDRESS_AWARE
=
0
export
PW_FORCE_DISABLED_GAMEMOD
=
1
export
PW_CHECK_AUTOINSTAL
=
1
export
PW_WINEDBG_DISABLE
=
1
export
PW_NO_WRITE_WATCH
=
0
export
PW_VULKAN_USE
=
0
export
PW_NO_FSYNC
=
1
export
PW_NO_ESYNC
=
1
export
PW_NO_WRITE_WATCH
=
0
export
PW_VULKAN_USE
=
0
export
PW_NO_FSYNC
=
1
export
PW_NO_ESYNC
=
1
PW_WGC
()
{
export
LAUNCH_PARAMETERS
=(
"/SILENT"
"/SP-"
)
export
LAUNCH_PARAMETERS
=(
"/SILENT"
"/SP-"
)
[
"
${
update_loc
}
"
=
"RUS"
]
&&
export
WGC_LOC
=
RU
||
export
WGC_LOC
=
EU
export
PW_AUTOINSTALL_EXE
=
"
${
PW_USER_TEMP
}
/Wargaming_Game_Center_Install_WoT_RU.exe"
START_PORTWINE
...
...
@@ -112,10 +112,13 @@ PW_EVE () {
if
try_download
"https://binaries.eveonline.com/EveLauncher-1892908.exe"
"
${
PW_AUTOINSTALL_EXE
}
"
then
PW_START_PROGRESS_BAR_BLOCK
"Installing the EVE Launcher. Please wait..."
dd
if
=
"
${
PW_AUTOINSTALL_EXE
}
"
of
=
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
bs
=
1M
skip
=
31646603
count
=
196171208
iflag
=
skip_bytes,count_bytes
"
$pw_7z
"
x
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
-o
"
$WINEPREFIX
/drive_c/Games/EVE Online"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
if
[
!
-f
"
$WINEPREFIX
/drive_c/Games/EVE Online/Launcher/evelauncher.exe"
]
;
then
try_remove_dir
"
$WINEPREFIX
/drive_c/Games/EVE Online"
dd
if
=
"
${
PW_AUTOINSTALL_EXE
}
"
of
=
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
bs
=
1M
skip
=
31646603
count
=
196171208
iflag
=
skip_bytes,count_bytes
"
$pw_7z
"
x
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
-o
"
$WINEPREFIX
/drive_c/Games/EVE Online"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
.7z
fi
portwine_exe
=
"
$WINEPREFIX
/drive_c/Games/EVE Online/Launcher/evelauncher.exe"
PW_STOP_PROGRESS_BAR
PORTWINE_CREATE_SHORTCUT
...
...
data_from_portwine/scripts/runlib
View file @
e9cb9881
...
...
@@ -16,9 +16,9 @@ if [ "${s_install}" != "1" ] && [ ! -x "`which "zenity" 2>/dev/null`" ];then
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1 &
exit
0
fi
pw_ping_test
()
{
ping
-w
5
-c1
github.com &> /dev/null
ping
-w
3
-c1
github.com &> /dev/null
[
"
$?
"
==
"0"
]
&&
return
0
||
return
1
}
}
print_error
()
{
echo
"ERROR:
$@
"
}
...
...
@@ -363,7 +363,6 @@ START_PORTWINE ()
create_new_dir
"
${
PORT_WINE_TMP_PATH
}
/dxvk_cache"
export
DXVK_STATE_CACHE_PATH
=
"
${
PORT_WINE_TMP_PATH
}
"
/dxvk_cache
export
DXVK_STATE_CACHE
=
1
export
STAGING_SHARED_MEMORY
=
1
export
optirun_on
=
""
export
check_optimus_manager
=
export
PW_NVIDIA
=
"
$(
lspci |
grep
NVIDIA
)
"
...
...
@@ -492,18 +491,18 @@ RUN_WINETRICKS_FROM_DB () {
sed
-i
'/vcrun2015/d'
"
${
WINEPREFIX
}
/winetricks.log"
sed
-i
'/vcrun2017/d'
"
${
WINEPREFIX
}
/winetricks.log"
fi
grep
"
${
need_install_dll_to_pfx
}
"
"
${
WINEPREFIX
}
/winetricks.log"
grep
"
${
need_install_dll_to_pfx
}
"
"
${
WINEPREFIX
}
/winetricks.log"
if
[
"
$?
"
==
"1"
]
;
then
if
[
-z
"
${
PW_DLL_NEED_INSTALL
}
"
]
then
export
PW_DLL_NEED_INSTALL
=
"
${
need_install_dll_to_pfx
}
"
else
export
PW_DLL_NEED_INSTALL
=
"
${
need_install_dll_to_pfx
}
${
PW_DLL_NEED_INSTALL
}
"
fi
export
USE_WT_FROM_DB
=
1
fi
fi
done
else
export
PW_DLL_NEED_INSTALL
=
"
${
PW_DLL_INSTALL
}
"
export
USE_WT_FROM_DB
=
1
export
USE_WT_FROM_DB
=
1
fi
if
[
"
${
USE_WT_FROM_DB
}
"
==
"1"
]
;
then
UPDATE_WINETRICKS
...
...
@@ -547,7 +546,7 @@ PW_UPDATE () {
fi
read
"update_not"
<
"
${
PORT_WINE_TMP_PATH
}
/update_notifier"
if
[
"
${
update_not
}
"
=
"1"
]
;
then
echo
`
curl
-s
--list-only
"
${
PW_FTP_URL
}
/current_version/
${
portname
}
_ver"
`
>
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_cur_ver"
echo
`
curl
-s
--list-only
"
${
PW_FTP_URL
}
/current_version/
${
portname
}
_ver"
`
>
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_cur_ver"
if
[
-f
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_ver"
]
;
then
read
current_ver <
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_cur_ver"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_cur_ver"
...
...
@@ -697,17 +696,18 @@ PW_INIT_PFX () {
export
PW_WINDOWS_VER
=
"10"
echo
"Use VKD3D-PROTON version
${
PW_VKD3D_VER
}
(DX12 to vulkan)"
fi
PW_OTHER_FIXES
}
PW_SCRIPTS_UPDATE
()
{
if
[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
]
;
then
echo
"1000"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
fi
echo
`
curl
-s
--list-only
"
${
PW_FTP_URL
}
/current_version/scripts_ver"
`
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_cur_ver"
echo
`
curl
-s
--list-only
"
${
PW_FTP_URL
}
/current_version/scripts_ver"
`
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_cur_ver"
if
[
"
$?
"
==
"0"
]
;
then
read
scripts_current_ver <
"
${
PORT_WINE_TMP_PATH
}
/scripts_cur_ver"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/scripts_cur_ver"
if
[
!
-z
"
${
scripts_current_ver
}
"
]
&&
[
"
${
scripts_current_ver
}
"
-gt
"
${
scripts_install_ver
}
"
]
;
then
if
[
!
-z
"
${
scripts_current_ver
}
"
]
&&
[
"
${
scripts_current_ver
}
"
-gt
"
${
scripts_install_ver
}
"
]
;
then
echo
"######################################################"
echo
"Update scripts..."
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/scripts.tar.xz"
...
...
@@ -719,11 +719,11 @@ PW_SCRIPTS_UPDATE () {
"
${
pw_yad
}
"
--title
=
"Changelog"
--borders
=
10
\
--text
=
"Скрипты были успешно обновлены.
\n
Для продолжения запуска порта нажмите ОК."
\
--text-align
=
center
--text-info
--show-uri
--wrap
--center
--width
=
1200
--height
=
550
\
--filename
=
"
${
PORT_WINE_PATH
}
/data/changelog"
--uri-color
=
red
[
"
$?
"
==
0
]
&&
/bin/bash
-c
${
pw_full_command_line
[*]
}
&
--filename
=
"
${
PORT_WINE_PATH
}
/data/changelog"
--uri-color
=
red
[
"
$?
"
==
0
]
&&
/bin/bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
fi
else
else
zenity_error_download
&&
PW_SCRIPTS_UPDATE
fi
fi
...
...
@@ -734,7 +734,7 @@ PW_RUN () {
if
[
!
-z
"
$portwine_exe
"
]
;
then
export
PATH_TO_GAME
=
"
$(
cd
"
$(
dirname
"
${
portwine_exe
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
cd
"
$PATH_TO_GAME
"
else
else
cd
"
${
WINEPREFIX
}
/drive_c"
fi
pw_mangohud_check
...
...
@@ -745,7 +745,7 @@ PW_RUN () {
if
[
!
-z
"
${
PW_GAMEMODERUN
}
"
]
&&
[
"
${
PW_GAMEMODERUN
}
"
!=
0
]
;
then
echo
"Full command line:
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
" gamemoderun
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
" "
$@
"
${
LAUNCH_PARAMETERS
[*]
}
"
"&>>
${
PW_LOG_TO_FILE
}
"
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
gamemoderun
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[*]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
else
else
echo
"Full command line:
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
" "
$@
"
${
LAUNCH_PARAMETERS
[*]
}
"
"&>>
${
PW_LOG_TO_FILE
}
"
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[*]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
fi
...
...
@@ -754,7 +754,7 @@ PW_RUN () {
if
[
!
-z
"
${
PW_GAMEMODERUN
}
"
]
&&
[
"
${
PW_GAMEMODERUN
}
"
!=
0
]
;
then
echo
"Full command line:
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
" gamemoderun
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
" "
$@
"
${
LAUNCH_PARAMETERS
[*]
}
"
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
gamemoderun
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[*]
}
else
else
echo
"Full command line:
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
" "
$@
"
${
LAUNCH_PARAMETERS
[*]
}
"
$PW_TERM
${
optirun_on
}
"
${
PW_RUNTIME
}
"
${
RUN_MANGOHUD
}
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[*]
}
fi
...
...
@@ -777,6 +777,7 @@ if [ ! -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ] ; then
fi
.
"
${
PORT_SCRIPTS_PATH
}
"
/lang
unset
MANGOHUD PW_NO_ESYNC PW_NO_FSYNC PW_VULKAN_USE WINEDLLOVERRIDES PW_NO_WRITE_WATCH PW_CHECK_AUTOINSTAL
var_winedlloverride_update
"winemenubuilder.exe="
export
url_mono
=
"https://github.com/madewokherd/wine-mono/releases/download/wine-mono-
${
mono_ver
}
/wine-mono-
${
mono_ver
}
-x86.tar.xz"
export
url_gecko_x86
=
"https://dl.winehq.org/wine/wine-gecko/
${
gecko_ver
}
/wine-gecko-
${
gecko_ver
}
-x86.tar.xz"
...
...
@@ -795,22 +796,12 @@ export PW_DXVK_VER="${PW_DEF_DXVK_VER}"
export
PW_VKD3D_VER
=
"
${
PW_DEF_VKD3D_VER
}
"
export
install_ver
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/
${
portname
}
_ver"
|
head
-n
1
`
export
scripts_install_ver
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
|
head
-n
1
`
export
PW_FORCE_DISABLED_GAMEMOD
=
0
export
PW_FORCE_LARGE_ADDRESS_AWARE
=
export
PW_CHECK_AUTOINSTAL
=
export
PW_WINEDBG_DISABLE
=
1
export
PW_NO_WRITE_WATCH
=
export
WINEDLLOVERRIDES
=
export
PW_VULKAN_USE
=
export
PW_NO_FSYNC
=
export
PW_NO_ESYNC
=
export
MANGOHUD
=
if
[
-z
"
${
INSTALLING_PORT
}
"
]
;
then
PW_LOAD_LIBS
PW_DOWNLOAD_MONO
PW_DOWNLOAD_GECKO
PW_INIT_DB
PW_UPDATE
PW_SCRIPTS_UPDATE
PW_INIT_DB
fi
data_from_portwine/scripts/start.sh
View file @
e9cb9881
...
...
@@ -13,13 +13,13 @@ PORTWINE_LAUNCH () {
PORTWINE_BAT
=
`
basename
"
${
portwine_exe
}
"
|
grep
.bat
`
if
[
!
-z
"
${
PW_VIRTUAL_DESKTOP
}
"
]
&&
[
"
${
PW_VIRTUAL_DESKTOP
}
"
==
"1"
]
;
then
pw_screen_resolution
=
`
xrandr
--current
|
grep
"*"
|
awk
'{print $1;}'
|
head
-1
`
PW_RUN explorer
"/desktop=portwine,
${
pw_screen_resolution
}
"
"
$WINE_WIN_START
"
/
b /
unix
"
$portwine_exe
"
PW_RUN explorer
"/desktop=portwine,
${
pw_screen_resolution
}
"
"
$WINE_WIN_START
"
/unix
"
$portwine_exe
"
elif
[
!
-z
"
${
PORTWINE_MSI
}
"
]
;
then
PW_RUN msiexec /i
"
$portwine_exe
"
elif
[
!
-z
"
${
PORTWINE_BAT
}
"
]
||
[
!
-z
"
${
portwine_exe
}
"
]
;
then
PW_RUN
"
$WINE_WIN_START
"
/
b /
unix
"
$portwine_exe
"
PW_RUN
"
$WINE_WIN_START
"
/unix
"
$portwine_exe
"
else
PW_RUN
"
$WINE_WIN_START
"
/b
explorer
PW_RUN
"
$WINE_WIN_START
"
explorer
fi
}
PORTWINE_CREATE_SHORTCUT
()
{
...
...
@@ -168,11 +168,11 @@ PORTWINE_DEBUG () {
}
PW_WINECFG
()
{
START_PORTWINE
PW_RUN
"
$WINE_WIN_START
"
/b
winecfg
PW_RUN
"
$WINE_WIN_START
"
winecfg
}
PW_WINEFILE
()
{
START_PORTWINE
PW_RUN
"
$WINE_WIN_START
"
/b
explorer
PW_RUN
"
$WINE_WIN_START
"
explorer
}
PW_WINECMD
()
{
export
PW_USE_TERMINAL
=
1
...
...
@@ -181,7 +181,7 @@ PW_WINECMD () {
}
PW_WINEREG
()
{
START_PORTWINE
PW_RUN
"
$WINE_WIN_START
"
/b
regedit
PW_RUN
"
$WINE_WIN_START
"
regedit
}
PW_WINETRICKS
()
{
UPDATE_WINETRICKS
...
...
@@ -303,8 +303,8 @@ else
fi
if
[
!
-z
"
${
VULKAN_MOD
}
"
]
;
then
if
[
"
${
VULKAN_MOD
}
"
=
"DXVK"
]
;
then
export
PW_VULKAN_USE
=
"dxvk"
elif
[
"
${
VULKAN_MOD
}
"
=
"VKD3D"
]
;
then
export
PW_VULKAN_USE
=
"vkd3d"
elif
[
"
${
VULKAN_MOD
}
"
=
"OPENGL"
]
;
then
export
PW_VULKAN_USE
=
"0"
elif
[
"
${
VULKAN_MOD
}
"
=
"VKD3D"
]
;
then
export
PW_VULKAN_USE
=
"vkd3d"
elif
[
"
${
VULKAN_MOD
}
"
=
"OPENGL"
]
;
then
export
PW_VULKAN_USE
=
"0"
fi
fi
case
"
$PW_YAD_SET
"
in
...
...
data_from_portwine/scripts/var
View file @
e9cb9881
...
...
@@ -16,6 +16,8 @@ export PW_LOG=0
export
PW_TERM
=
""
export
PW_USE_TERMINAL
=
0
export
PW_WINEDBG_DISABLE
=
1
export
PW_WINDOWS_VER
=
"7"
export
WINEARCH
=
"win64"
...
...
@@ -37,7 +39,7 @@ ADD_IN_STOP_PORTWINE ()
echo
" "
}
########################################################################
OTHER_FIXES
()
{
PW_
OTHER_FIXES
()
{
#fix after installation Origin, for disabled OriginWebHelperService by default
if
[
!
-z
`
cat
"
${
WINEPREFIX
}
/system.reg"
|
grep
Origin.exe |
head
-n
1 |
awk
'{print $1}'
`
]
;
then
sysreg_norig
=
$((
(
`
cat
-n
"
${
WINEPREFIX
}
/system.reg"
|
grep
OriginWebHelperService |
awk
'{print $1}'
`
+
3
))
)
...
...
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