forked from CastroFidel/PortWINE
Compare commits
15 Commits
libs_v30
...
dotpfx48v1
Author | SHA1 | Date | |
---|---|---|---|
d2410479d8 | |||
366cd15995 | |||
3f0f52669f | |||
f74a051301 | |||
29fea96413 | |||
6103a61657 | |||
caa498a99d | |||
da38a958ac | |||
bcc3387749 | |||
564ed9aaf6 | |||
3ba7742e7f | |||
efaeef7749 | |||
5fa3dd120c | |||
72e773cfa0 | |||
29eb9ba79f |
108
README.md
108
README.md
@ -1,11 +1,103 @@
|
||||
# PortWINE
|
||||
|
||||
data_from_portwine - contains scripts and additional files for configuring and running applications.
|
||||
|
||||
portwine_install_script - contains a self-extracting port setup script
|
||||
|
||||
PLEASE DO NOT REPORT BUGS ENCOUNTERED WITH THIS AT WINEHQ OR VALVE SOFTWARE!
|
||||
|
||||
Generated Wine sources for use in PortWINE:
|
||||
PortWINE is a project designed to make it easy and convenient to run Windows games on Linux for both beginners and advanced users.
|
||||
The project strives to make launching games (and other software) as simple as possible, but at the same time provides flexible settings for advanced users.
|
||||
|
||||
Based on the version of WINE from Valve (Proton) and its modifications (Proton GE). Includes a set of scripts combined with wine-proton itself, a Steam Runtime Sniper container with the addition of ported versions of MANGOHUD (output useful information over the game window: FPS, FrameTime, CPU, GPU, etc) and vkBasalt (improvement of graphics in games, very good in in conjunction with FSR, DLSS) + many already configured optimizations for maximum performance.
|
||||
|
||||
Implemented one-click auto-installation (in the AUTOINSTALL tab ) of popular launchers such as: WGC, Epic Games, Battle.net, Origin, EVE Online, RockStar, Ubisoft connect , League of Legends and many others.
|
||||
For fans of console games, there are many console emulators to choose from (in the EMULATORS tab ): PPSSPP, Citra, Cemu, ePSXe, MAME and many others.
|
||||
|
||||
PLEASE DO NOT REPORT BUGS ENCOUNTERED WITH THIS AT WINEHQ OR VALVE SOFTWARE!
|
||||
|
||||
Wine sources used in PortWINE:
|
||||
WINE-PROTON: https://github.com/ValveSoftware/Proton
|
||||
WINE-PROTON-GE: https://github.com/GloriousEggroll/proton-ge-custom/
|
||||
WINE-PROTON-GE: https://github.com/GloriousEggroll/proton-ge-custom/
|
||||
|
||||
## Installation using packages
|
||||
|
||||
* **Ubuntu 20.04** (Kubuntu, Xubuntu, Lubuntu, etc.), **Linux Mint 20.x** : [portproton_1.0-2_amd64.deb](https://github.com/Castro-Fidel/PortProton_dpkg/releases/download/portproton_1.0-2_amd64/portproton_1.0-2_amd64.deb)
|
||||
* **Arch Linux** and derivatives (Manjaro, Garuda, etc.) : [portproton-1.0-8-x86_64.pkg.tar.zst](https://github.com/Castro-Fidel/PortProton_PKGBUILD/releases/download/portproton-1.0-8-x86_64/portproton-1.0-8-x86_64.pkg.tar.zst)
|
||||
* **ROSA Linux** (package in the official repository) is installed with the command: `sudo urpmi portproton`
|
||||
|
||||
## Universal (manual) installation
|
||||
|
||||
**ATTENTION** : with the universal method of installing PortProton, dependencies must be installed manually!
|
||||
|
||||
Normal installation:
|
||||
|
||||
`wget -c "https://github.com/Castro-Fidel/PortWINE/raw/master/portwine_install_script/PortProton_1.0" && sh PortProton_1.0`
|
||||
|
||||
Silent installation (ENG):
|
||||
|
||||
`wget -c "https://github.com/Castro-Fidel/PortWINE/raw/master/portwine_install_script/PortProton_1.0" && sh PortProton_1.0 -eng`
|
||||
|
||||
Silent installation (RUS):
|
||||
|
||||
`wget -c "https://github.com/Castro-Fidel/PortWINE/raw/master/portwine_install_script/PortProton_1.0" && sh PortProton_1.0 -rus`
|
||||
|
||||
## Dependencies
|
||||
|
||||
* **NVIDIA graphics card users**
|
||||
|
||||
If you have a video card from NVIDIA and a proprietary driver is installed, then you need to check if lib32-nvidia-utils is installed (no 32-bit game will work without it)
|
||||
|
||||
* **Ubuntu / Linux Mint / Pop!_OS**
|
||||
|
||||
`sudo dpkg --add-architecture i386`
|
||||
|
||||
`sudo add-apt-repository multiverse`
|
||||
|
||||
`sudo apt update && sudo apt upgrade`
|
||||
|
||||
`sudo apt install curl file libc6 libnss3 policykit-1 xz-utils zenity bubblewrap curl icoutils tar libvulkan1 libvulkan1:i386 wget zenity zstd cabextract xdg-utils openssl bc libgl1-mesa-glx libgl1-mesa-glx:i386`
|
||||
|
||||
* **Arch Linux / Manjaro**
|
||||
|
||||
`sudo pacman -Syu bash icoutils wget bubblewrap zstd cabextract bc tar openssl gamemode desktop-file-utils curl dbus freetype2 gdk-pixbuf2 ttf-font zenity lsb-release nss xorg-xrandr vulkan-driver vulkan-icd-loader lsof lib32-freetype2 lib32-libgl lib32-gcc-libs lib32-libx11 lib32-libxss lib32-alsa-plugins lib32-libgpg-error lib32-nss lib32-vulkan-driver lib32-vulkan-icd-loader lib32-gamemode lib32-openssl`
|
||||
|
||||
If you have a video card from **NVIDIA** , be sure to check if the **lib32-nvidia-utils** package is installed
|
||||
|
||||
`sudo pacman -Syu lib32-nvidia-utils`
|
||||
|
||||
* **Debian/Deepin**
|
||||
|
||||
`sudo apt install software-properties-common -y && sudo apt-add-repository non-free && sudo dpkg --add-architecture i386 && sudo apt update && sudo apt upgrade`
|
||||
|
||||
`sudo apt install bubblewrap curl gamemode icoutils tar wget zenity zstd libvulkan1 libvulkan1:i386 steam cabextract`
|
||||
|
||||
* **openSUSE**
|
||||
|
||||
`sudo zypper ref && sudo zypper up && sudo zypper in curl icoutils wget zenity bubblewrap zstd cabextract tar steam zenity zenity-lang`
|
||||
|
||||
Installing Gamemode is done with a separate command:
|
||||
|
||||
`opi gamemode`
|
||||
|
||||
* **Fedora**
|
||||
|
||||
Enable Non-free repository:
|
||||
|
||||
`sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm`
|
||||
|
||||
Install the required dependencies:
|
||||
|
||||
`sudo dnf update && sudo dnf upgrade --refresh && sudo dnf install curl gamemode icoutils libcurl wget zenity bubblewrap zstd cabextract tar goverlay openssl steam`
|
||||
|
||||
* **Alt Linux**
|
||||
|
||||
`sudo apt-get update && sudo apt-get dist-upgrade -y`
|
||||
|
||||
`sudo apt-get install bubblewrap cabextract curl gamemode icoutils i586-libvulkan1 libvulkan1 steam vulkan-tools wget zenity zstd`
|
||||
|
||||
* **ROSA DESKTOP FRESH R12**
|
||||
|
||||
`sudo dnf update && sudo dnf upgrade --refresh && sudo dnf install sysvinit-tools curl libcurl4 icoutils wget zenity bubblewrap zstd cabextract tar libvulkan1 lib64vulkan1 vulkan.x86_64 vulkan.i686 vkd3d.x86_64 vkd3d.i686 coreutils file libc6 libnss3 xz bubblewrap xdg-utils openssl bc libgl1 lib64freetype2 libfreetype2 lib64txc-dxtn libtxc-dxtn coreutils lib64opencl1 libopencl1 libdrm2 libdrm2.i686 mesa.i686`
|
||||
|
||||
* **Solus 4.x**
|
||||
|
||||
`sudo eopkg it curl file zenity bubblewrap curl icoutils tar wget zenity zstd cabextract xdg-utils openssl bc vulkan vulkan-32bit mesalib-32bit samba`
|
||||
|
||||
## Contacts
|
||||
|
||||
You can join our [Discord](https://discord.gg/FTaheP99wE) server.
|
||||
|
@ -2,6 +2,43 @@ You can help us in the development of the project on the website: boosty.to/port
|
||||
-----------------------------------------
|
||||
Changelog:
|
||||
|
||||
###Scripts version 2118###
|
||||
* PW_USE_D3D_EXTRAS is back on by default (except WGC)
|
||||
* updated "PROTON_STEAM" to version 7.0-3
|
||||
* added information about the project and developers (test mode)
|
||||
|
||||
###Scripts version 2117###
|
||||
* HOTFIX - World of Sea Battles
|
||||
* HOTFIX - AUTOINSTALL
|
||||
|
||||
###Scripts version 2116###
|
||||
* HOTFIX - Epic Games Store
|
||||
* HOTFIX - League of Legends
|
||||
|
||||
###Scripts version 2115###
|
||||
* optimized launch PortProton in Rosa Linux
|
||||
|
||||
###Scripts version 2111 - 2114###
|
||||
* debug
|
||||
|
||||
###Scripts version 2110###
|
||||
* updated "PROTON_GE" to version 7-20
|
||||
* fixed the work of the game World of Warplanes
|
||||
* variable PW_D3D_EXTRAS_DISABLE renamed to PW_USE_D3D_EXTRAS and disabled by default
|
||||
|
||||
###Scripts version 2109###
|
||||
* update "libs_v31"
|
||||
* updated "PROTON_GE" to version 7-19
|
||||
|
||||
###Scripts version 2108###
|
||||
* HOTFIX for Rosa Linux
|
||||
|
||||
###Scripts version 2107###
|
||||
* accelerated container launch
|
||||
* optimization of start.sh script
|
||||
* updated "libs_v30" (restored work of vkBasalt on previous versions of OS Linux)
|
||||
* updated "PROTON_GE" to version 7-18
|
||||
|
||||
###Scripts version 2106###
|
||||
* updated libs_v29 (steam runtime sniper 20220509, mangohud 0.6.7, vkBasalt 0.3.2.5)
|
||||
* added "WINE_FULLSCREEN_FSR" variable to "EDIT_DB" to enable "AMD FidelityFX Super Resolution"
|
||||
|
@ -2,6 +2,44 @@
|
||||
-----------------------------------------
|
||||
История изменений:
|
||||
|
||||
###Scripts version 2118###
|
||||
* переменная PW_USE_D3D_EXTRAS снова включена по умолчанию (кроме WGC)
|
||||
* обновлен "PROTON_STEAM" до версии 7.0-3
|
||||
* добавлена информация о проекте, разработчиках и донатеров (тестовый режим)
|
||||
|
||||
###Scripts version 2117###
|
||||
* исправлена установка и запуск World of Sea Battle
|
||||
* для AUTOINSTALL по умолчанию включена переменная PW_USE_D3D_EXTRAS (необходима для стабильной установки лончеров в тихом режиме)
|
||||
|
||||
###Scripts version 2116###
|
||||
* HOTFIX - Epic Games Store
|
||||
* HOTFIX - League of Legends
|
||||
|
||||
###Scripts version 2115###
|
||||
* ускорен запуск PortProton в Rosa Linux
|
||||
|
||||
###Scripts version 2111 - 2114###
|
||||
* исправление ошибок
|
||||
|
||||
###Scripts version 2110###
|
||||
* обновлен "PROTON_GE" до версии 7-20
|
||||
* исправлена работа игры World of Warplanes
|
||||
* переменная PW_D3D_EXTRAS_DISABLE переименована в PW_USE_D3D_EXTRAS и выключена по умолчанию (в связи с развитием WINE сторонние библиотеки DirectX нужны в меньшем количестве игр)
|
||||
|
||||
###Scripts version 2109###
|
||||
* обновлен "libs_v31" (HOTFIX для Rosa Linux)
|
||||
* обновлен "PROTON_GE" до версии 7-19
|
||||
* исправлена работа Overwatch
|
||||
|
||||
###Scripts version 2108###
|
||||
* HOTFIX - для правильной работы в Rosa Linux
|
||||
|
||||
###Scripts version 2107###
|
||||
* ускорен запуск контейнера
|
||||
* оптимизация скрипта start.sh
|
||||
* обновлен "libs_v30" (восстановлена работа vkBasalt на предыдущих версиях OS Linux)
|
||||
* обновлен "PROTON_GE" до версии 7-18
|
||||
|
||||
###Scripts version 2106###
|
||||
* обновлен libs_v29 (steam runtime sniper 20220509, mangohud 0.6.7, vkBasalt 0.3.2.5)
|
||||
* для включения "AMD FidelityFX Super Resolution" в "EDIT_DB" добавлен переменная "WINE_FULLSCREEN_FSR"
|
||||
|
112
data_from_portwine/scripts/credits
Executable file
112
data_from_portwine/scripts/credits
Executable file
@ -0,0 +1,112 @@
|
||||
#! /bin/sh
|
||||
"${pw_yad_new}" --plug=10 --tabnum=1 --show-uri \
|
||||
--text-align=center --text="PortProton v.${install_ver}
|
||||
scripts v. ${scripts_install_ver}
|
||||
|
||||
Программа для запуска Windows игр и приложений в GNU/Linux
|
||||
|
||||
https://portwine-linux.ru
|
||||
|
||||
Copyright © 2022 Castro-Fidel (PortWINE-Linux.ru)
|
||||
|
||||
This program comes with absolutely no warranty.
|
||||
See the License for details." &
|
||||
|
||||
|
||||
"${pw_yad_new}" --plug=10 --tabnum=2 \
|
||||
--text-align=center --text="Author: Casro-Fidel
|
||||
|
||||
Development assistants:
|
||||
Cefeiko
|
||||
Dezert1r
|
||||
Taz_mania
|
||||
Anton_Famillianov
|
||||
gavr
|
||||
RidBowt
|
||||
chal55rus
|
||||
UserDiscord
|
||||
|
||||
Список будет дополнятся..." &
|
||||
|
||||
"${pw_yad_new}" --plug=10 --tabnum=3 --text-info <<< "MIT License
|
||||
|
||||
Copyright (©) 2022 Castro-Fidel (PortWINE-Linux.ru)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED (AS IS), WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE." &
|
||||
|
||||
"${pw_yad_new}" --plug=10 --tabnum=4 \
|
||||
--text-align=center \
|
||||
--text="Sponsors:
|
||||
Cefeiko
|
||||
Dezert1r
|
||||
Taz_mania
|
||||
Anton_Famillianov
|
||||
gavr
|
||||
RidBowt
|
||||
chal55rus
|
||||
UserDiscord
|
||||
Александр
|
||||
Сергей 33(46)RUS
|
||||
Aule Mahal
|
||||
CyberBoar
|
||||
Evgen
|
||||
johny
|
||||
Maksami
|
||||
MRModer
|
||||
Pependos
|
||||
Phoenix55rus
|
||||
Xpamych
|
||||
Виндета(рот)
|
||||
Ка6адОнНа
|
||||
ХОЛО МУДРАЯ
|
||||
|
||||
Список будет дополнятся..." &
|
||||
|
||||
"${pw_yad_new}" --plug=10 --tabnum=5 --text="Хотите присоединится и помочь в развитии проекта:" \
|
||||
--title=JOIN --window-icon=group --image=system-config-users --uri-color=red --show-uri \
|
||||
--text-info <<< \
|
||||
"Website: http://portwine-linux.ru
|
||||
Discord: http://discord.gg/yJSEFjF
|
||||
VK: https://vk.com/portwinelinux
|
||||
-------------------------------------------
|
||||
Стать платным подписчиком:
|
||||
boosty: https://boosty.to/portwine-linux.ru
|
||||
patreon: https://www.patreon.com/portproton
|
||||
Кошельки WebMoney: WMZ-Z135951244401 WME-E325631629973
|
||||
Yandex кошельк: 410012267513818
|
||||
-------------------------------------------
|
||||
Задонатить на стрим:
|
||||
https://www.donationalerts.com/r/portwine_linux" &
|
||||
|
||||
"${pw_yad_new}" --plug=10 --tabnum=6 --show-uri --title="THIRD PARTY LIBRARIES" \
|
||||
--text-info <<< "Сторонние библиотеки, которые используются в PortProton
|
||||
|
||||
PortProton собран на основе следующих бесплатных библиотек программного обеспечения:
|
||||
|
||||
WINE-PROTON: https://github.com/ValveSoftware/Proton
|
||||
WINE-PROTON-GE: https://github.com/GloriousEggroll/proton-ge-custom/
|
||||
YAD: https://github.com/v1cont/"${pw_yad_new}"
|
||||
ZENITY: https://github.com/GNOME/zenity" &
|
||||
|
||||
"${pw_yad_new}" --title "ABOUT US" --key=10 --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
|
||||
--center --notebook --no-buttons --tab-pos=bottom \
|
||||
--tab="ABOUT PORTPROTON" --tab="AUTORS" --tab="LICENSE" --tab="SPONSORS" --tab="JOIN" \
|
||||
--tab="THIRD PARTY LIBRARIES"
|
||||
|
||||
/usr/bin/env bash -c ${pw_full_command_line[*]}
|
@ -63,7 +63,7 @@ try_remove_dir () {
|
||||
export -f try_remove_dir
|
||||
|
||||
try_force_link_file () {
|
||||
if [ ! -f "$1" ] ; then print_info "file $1 not found for link"
|
||||
if [ ! -f "$1" ] ; then :
|
||||
elif [ -z "$2" ] ; then print_error "no way to link file $1"
|
||||
else
|
||||
ln -sf "$1" "$2"
|
||||
@ -332,6 +332,10 @@ init_wine_ver () {
|
||||
|
||||
pw_init_runtime () {
|
||||
|
||||
if [[ -n "$(grep "ROSA Fresh" "/etc/os-release")" ]] ; then
|
||||
export LOCPATH="/run/host/usr/share/locale/"
|
||||
fi
|
||||
|
||||
PW_PV_OVERRIDES="/usr/lib/pressure-vessel/overrides/lib"
|
||||
export PW_LD_LIBRARY_PATH="${WINEDIR}/lib64:${WINEDIR}/lib:${PW_WINELIB}/portable/lib/lib64:${PW_WINELIB}/portable/lib/lib32:${PW_PV_OVERRIDES}/x86_64-linux-gnu/aliases:${PW_PV_OVERRIDES}/i386-linux-gnu/aliases"
|
||||
|
||||
@ -367,16 +371,19 @@ pw_init_runtime () {
|
||||
--home="${PW_SANDBOX_HOME_PATH}" \
|
||||
--no-gc-legacy-runtimes \
|
||||
--no-gc-runtimes \
|
||||
--copy-runtime \
|
||||
--remove-game-overlay \
|
||||
${PW_ADD_TO_ARGS_IN_RUNTIME} --"
|
||||
else
|
||||
export pw_runtime="${PW_WINELIB}/pressure-vessel/bin/pressure-vessel-unruntime \
|
||||
--share-home \
|
||||
--no-gc-legacy-runtimes \
|
||||
--no-gc-runtimes \
|
||||
--copy-runtime \
|
||||
--remove-game-overlay \
|
||||
${PW_ADD_TO_ARGS_IN_RUNTIME} --"
|
||||
fi
|
||||
|
||||
export PRESSURE_VESSEL_COPY_RUNTIME=1
|
||||
export PRESSURE_VESSEL_IMPORT_VULKAN_LAYERS=0
|
||||
# export PRESSURE_VESSEL_GRAPHICS_PROVIDER=""
|
||||
|
||||
|
@ -12,7 +12,7 @@ then
|
||||
export loc_gui_changelog="История изменений"
|
||||
export loc_gui_edit_usc="Редактировать USER.CONF"
|
||||
export loc_gui_scripts_fb="Откатить версию скриптов"
|
||||
export loc_gui_about_us="О нас"
|
||||
export loc_gui_credits="Авторы и спасибы =)"
|
||||
|
||||
export loc_tray_winefile="Файловый менеджер WINE"
|
||||
export loc_tray_tascmng="Диспетчер задач WINE"
|
||||
@ -103,7 +103,7 @@ then
|
||||
export PW_DX12_DISABLE_INFO='Принудительное отключение DirectX 12'
|
||||
export PW_USE_WINE_DXGI_INFO='Принудительное использование встроенной библиотеки DXGI (в редких случаях решает проблемы с запуском игр под DX12)'
|
||||
export PW_MANGOHUD_USER_CONF_INFO='Принудительное использование системных настроек MANGOHUD (GOverlay и т.п.)'
|
||||
export PW_D3D_EXTRAS_DISABLE_INFO='Отключить принудительное использование сторонних библиотек DirectX'
|
||||
export PW_USE_D3D_EXTRAS='Включить принудительное использование сторонних библиотек DirectX'
|
||||
export PW_PRIME_RENDER_OFFLOAD_INFO='Включить дискретную видеокарту NVIDIA для ноутбуков с гибридной графикой (при поддержке установленого драйвера в ОС)'
|
||||
export PW_USE_WINDOWS_7_INFO='Изменить версию WINDOWS 10 на WINDOWS 7 в префиксе'
|
||||
export PW_USE_AMDVLK_DRIVER_INFO='Использовать драйвер AMDVLK вместо RADV на видеокартах от AMD'
|
||||
@ -142,7 +142,7 @@ then
|
||||
export loc_gui_changelog="CHANGELOG"
|
||||
export loc_gui_edit_usc="EDIT USER.CONF"
|
||||
export loc_gui_scripts_fb="SCRIPTS FROM BACKUP"
|
||||
export loc_gui_about_us="ABOUT PORTPROTON"
|
||||
export loc_gui_credits="CREDITS"
|
||||
|
||||
export loc_tray_winefile="WINEFILE"
|
||||
export loc_tray_tascmng="TASKMNR"
|
||||
|
@ -8,6 +8,7 @@ export PW_WINE_USE=PROTON_GE
|
||||
export PW_VULKAN_USE=1
|
||||
export LAUNCH_PARAMETERS="-SkipBuildPatchPrereq"
|
||||
export PW_DLL_INSTALL="vcrun2012 vcrun2013 vcrun2019"
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
|
||||
add_in_start_portwine () {
|
||||
regdlloverrides "RDR2.exe:vulkan-1=n"
|
||||
|
49
data_from_portwine/scripts/portwine_db/Forsaken_World
Normal file
49
data_from_portwine/scripts/portwine_db/Forsaken_World
Normal file
@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
#Author: berg
|
||||
#pemv.exe
|
||||
#Rating=5
|
||||
#####################examples###########################
|
||||
##export PW_COMMENT_DB="blablabla"
|
||||
export PW_WINDOWS_VER="10"
|
||||
export PW_DLL_INSTALL=""
|
||||
export WINEDLLOVERRIDES=""
|
||||
export LAUNCH_PARAMETERS=""
|
||||
export PW_WINE_USE="PROTON_GE"
|
||||
export PW_VULKAN_USE="1"
|
||||
export PW_USE_DXR10="0"
|
||||
##export PW_DLSS_ON=1
|
||||
##export PW_VULKAN_NO_ASYNC=1 # Disabled ASYNC for VULKAN
|
||||
export PW_USE_NVAPI_AND_DLSS="0"
|
||||
export PW_OLD_GL_STRING="0"
|
||||
export PW_HIDE_NVIDIA_GPU="0"
|
||||
export PW_FORCE_USE_VSYNC="0"
|
||||
export PW_VIRTUAL_DESKTOP="0"
|
||||
##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue
|
||||
export ENABLE_VKBASALT="0"
|
||||
##export PW_VKBASALT_EFFECTS="FakeHDR:cas" # Use Reshade in others games (dx9-12 to vulkan only)
|
||||
##export PW_VKBASALT_FFX_CAS="0.75" # FidelityFX Contrast Adaptive Sharpening (min 0 - max 1)
|
||||
export PW_NO_FSYNC="0"
|
||||
export PW_NO_ESYNC="1"
|
||||
export PW_USE_GSTREAMER="1"
|
||||
##export PULSE_LATENCY_MSEC=60 # Fix crackling audio in games
|
||||
##export PW_NO_WRITE_WATCH=1 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
|
||||
export PW_HEAP_DELAY_FREE="0"
|
||||
export PW_WINE_ALLOW_XIM="0"
|
||||
##export WINEARCH=win32 # defaut = win64
|
||||
##export WINEPREFIX=
|
||||
export PW_WINEDBG_DISABLE="1"
|
||||
export PW_USE_TERMINAL="0"
|
||||
export PW_GUI_DISABLED_CS="0"
|
||||
##export PATH_TO_GAME=
|
||||
##add_in_start_portwine () { commands ; }
|
||||
export PW_PREFIX_NAME="DEFAULT"
|
||||
export PW_USE_DXR11="0"
|
||||
export PW_WINE_FULLSCREEN_FSR="0"
|
||||
export PW_USE_GAMEMODE="1"
|
||||
export PW_DX12_DISABLE="0"
|
||||
export PW_PRIME_RENDER_OFFLOAD="0"
|
||||
export PW_USE_D3D_EXTRAS="1"
|
||||
export PW_FIX_VIDEO_IN_GAME="0"
|
||||
export PW_USE_AMDVLK_DRIVER="0"
|
||||
export PW_FORCE_LARGE_ADDRESS_AWARE="1"
|
||||
export PW_USE_SHADER_CACHE="1"
|
@ -20,6 +20,7 @@ export PW_PREFIX_NAME="LEAGUE_OF_LEGENDS"
|
||||
export PW_NO_FSYNC=1
|
||||
export PW_NO_ESYNC=1
|
||||
export PW_DISABLED_CREATE_DB=1
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
##export PW_GUI_DISABLED_CS=1 # 1 = disabled GUI
|
||||
|
||||
check_download_wine_ver_for_lol () {
|
||||
|
40
data_from_portwine/scripts/portwine_db/Oddworld_Soulstorm
Normal file
40
data_from_portwine/scripts/portwine_db/Oddworld_Soulstorm
Normal file
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
#Author: xuser
|
||||
#soulstorm.exe
|
||||
#Rating=5
|
||||
#################################################
|
||||
export PW_VULKAN_USE="1"
|
||||
export PW_WINE_USE="PROTON_GE"
|
||||
export PW_PREFIX_NAME="DEFAULT"
|
||||
export PW_VKBASALT_EFFECTS="Curves:cas"
|
||||
export PW_VKBASALT_FFX_CAS="0.75"
|
||||
export ENABLE_VKBASALT="1"
|
||||
export PW_MANGOHUD="1"
|
||||
export PW_MANGOHUD_USER_CONF="0"
|
||||
export PW_NO_ESYNC="1"
|
||||
export PW_NO_FSYNC="0"
|
||||
export PW_USE_DXR10="0"
|
||||
export PW_USE_DXR11="0"
|
||||
export PW_VULKAN_NO_ASYNC="0"
|
||||
export PW_USE_NVAPI_AND_DLSS="0"
|
||||
export PW_OLD_GL_STRING="0"
|
||||
export PW_HIDE_NVIDIA_GPU="0"
|
||||
export PW_FORCE_USE_VSYNC="0"
|
||||
export PW_VIRTUAL_DESKTOP="0"
|
||||
export PW_WINEDBG_DISABLE="1"
|
||||
export PW_USE_TERMINAL="0"
|
||||
export PW_WINE_ALLOW_XIM="0"
|
||||
export PW_HEAP_DELAY_FREE="0"
|
||||
export PW_GUI_DISABLED_CS="0"
|
||||
export PW_USE_GSTREAMER="1"
|
||||
export PW_USE_GAMEMODE="1"
|
||||
export PW_DX12_DISABLE="0"
|
||||
export PW_D3D_EXTRAS_DISABLE="0"
|
||||
export PW_FIX_VIDEO_IN_GAME="0"
|
||||
export PW_FORCE_LARGE_ADDRESS_AWARE="1"
|
||||
export PW_USE_SHADER_CACHE="1"
|
||||
export LAUNCH_PARAMETERS=""
|
||||
export PW_WINDOWS_VER="10"
|
||||
export PW_DLL_INSTALL=""
|
||||
export WINEDLLOVERRIDES=""
|
||||
export PW_WINE_FULLSCREEN_FSR="1"
|
@ -7,7 +7,7 @@
|
||||
##export PW_COMMENT_DB="blablabla"
|
||||
export PW_WINDOWS_VER=10
|
||||
export PW_DLL_INSTALL=""
|
||||
export WINEDLLOVERRIDES="vulkan-1=n"
|
||||
export WINEDLLOVERRIDES=""
|
||||
export LAUNCH_PARAMETERS="+gfx_strApi Vulkan"
|
||||
export PW_WINE_USE=PROTON_GE_7.1-2
|
||||
export PW_VULKAN_USE=1
|
||||
|
@ -7,10 +7,10 @@
|
||||
export PW_COMMENT_DB="World of Sea Battle"
|
||||
export PW_PREFIX_NAME="DOTNET"
|
||||
export PW_WINDOWS_VER="10"
|
||||
export PW_DLL_INSTALL="dotnet20sp2 dotnet48 faudio"
|
||||
export PW_DLL_INSTALL="faudio dotnet48 dotnet20sp2"
|
||||
export WINEDLLOVERRIDES="quartz=b"
|
||||
export LAUNCH_PARAMETERS=""
|
||||
export PW_WINE_USE="PROTON_GE_7-14"
|
||||
export PW_WINE_USE="PROTON_GE"
|
||||
export PW_VULKAN_USE="1"
|
||||
export PW_VULKAN_NO_ASYNC="0"
|
||||
export PW_USE_NVAPI_AND_DLSS="0"
|
||||
@ -35,7 +35,7 @@ export PW_USE_DXR11="0"
|
||||
export PW_USE_GAMEMODE="1"
|
||||
export PW_DX12_DISABLE="0"
|
||||
export PW_PRIME_RENDER_OFFLOAD="0"
|
||||
export PW_D3D_EXTRAS_DISABLE="0"
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
export PW_FIX_VIDEO_IN_GAME="0"
|
||||
export PW_USE_AMDVLK_DRIVER="1"
|
||||
export PW_FORCE_LARGE_ADDRESS_AWARE="1"
|
||||
|
@ -7,3 +7,4 @@ export PW_VULKAN_USE=1 #dxvk, vkd3d or 0 for OpenGL
|
||||
export PW_DLL_INSTALL="lucida vcrun2019" # Install DDL in port prefix (used winetricks)
|
||||
export WINEDLLOVERRIDES="xaudio2_7="
|
||||
export PW_WINEDBG_DISABLE=1 # Disabled WINEDBG
|
||||
export PW_USE_D3D_EXTRAS=0
|
||||
|
@ -8,6 +8,7 @@
|
||||
export PW_PREFIX_NAME="DOTNET"
|
||||
export PW_DLL_INSTALL="mfc42 vb6run physx dotnet40" # Install DDL in port prefix (used winetricks)
|
||||
export PW_COMMENT_DB="World Of Tanks EnCore"
|
||||
export PW_USE_D3D_EXTRAS=0
|
||||
## export DXVK_HUD=fps,devinfo
|
||||
## export PW_MANGOHUD=1
|
||||
#####################examples###########################
|
||||
|
@ -15,7 +15,10 @@ export WINEDLLOVERRIDES="ucrtbase,xaudio2_7,xaudio2_8=n,b"
|
||||
export PW_DLL_INSTALL="lucida vcrun2019" # Install DDL in port prefix (used winetricks)
|
||||
##export PW_GUI_DISABLED_CS=1
|
||||
##export PW_WINEDBG_DISABLE=1 # Disabled WINEDBG
|
||||
export PW_USE_D3D_EXTRAS=0
|
||||
|
||||
add_in_start_portwine () {
|
||||
sed -i 's%<igbHardwareAccelerationEnabled> true </igbHardwareAccelerationEnabled>%<igbHardwareAccelerationEnabled> false </igbHardwareAccelerationEnabled>%' "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/users/${USER}/AppData/Roaming/Wargaming.net/WorldOfTanks/preferences.xml"
|
||||
if [[ -f "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/users/${USER}/AppData/Roaming/Wargaming.net/WorldOfTanks/preferences.xml" ]] ; then
|
||||
sed -i 's%<igbHardwareAccelerationEnabled> true </igbHardwareAccelerationEnabled>%<igbHardwareAccelerationEnabled> false </igbHardwareAccelerationEnabled>%' "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/users/${USER}/AppData/Roaming/Wargaming.net/WorldOfTanks/preferences.xml"
|
||||
fi
|
||||
}
|
||||
|
@ -8,6 +8,7 @@
|
||||
export PW_PREFIX_NAME="DOTNET"
|
||||
export PW_DLL_INSTALL="dotnet40 vcrun2017 mfc42 vb6run physx"
|
||||
export PW_COMMENT_DB="World Of Tanks EnCore Installer"
|
||||
export PW_USE_D3D_EXTRAS=0
|
||||
## export DXVK_HUD=fps,devinfo
|
||||
## export PW_MANGOHUD=1
|
||||
#####################examples###########################
|
||||
|
@ -3,6 +3,8 @@
|
||||
########################################################################
|
||||
export LAUNCH_PARAMETERS=("/q" )
|
||||
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EpicGamesLauncherInstaller.msi"
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
|
||||
start_portwine
|
||||
if try_download "launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi" "${PW_AUTOINSTALL_EXE}"
|
||||
then
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Author: Castro-Fidel (PortWINE-Linux.ru)
|
||||
########################################################################
|
||||
export LAUNCH_PARAMETERS=("/VERYSILENT")
|
||||
export GOG_VER=2.0.46.133
|
||||
export GOG_VER=2.0.48.63
|
||||
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/setup_galaxy_${GOG_VER}.exe"
|
||||
start_portwine
|
||||
if try_download "content-system.gog.com/open_link/download?path=/open/galaxy/client/${GOG_VER}/setup_galaxy_${GOG_VER}.exe" "${PW_AUTOINSTALL_EXE}"
|
||||
|
@ -8,6 +8,7 @@ export PW_MUST_HAVE_DLL=""
|
||||
export PW_VULKAN_USE=1
|
||||
export PW_WINE_USE=WINE_LOL_GE_7.0-2
|
||||
export WINEDLLOVERRIDES="mscoree,mshtml="
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
|
||||
if [ ! -d "${PORT_WINE_PATH}/data/dist/${PW_WINE_USE}" ] ; then
|
||||
if try_download "github.com/Castro-Fidel/wine_builds/releases/download/${PW_WINE_USE}/${PW_WINE_USE}.tar.xz" \
|
||||
|
@ -4,7 +4,7 @@
|
||||
export PW_PREFIX_NAME="DOTNET"
|
||||
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/wos_client.exe"
|
||||
export LAUNCH_PARAMETERS=("/VERYSILENT")
|
||||
export PW_DLL_INSTALL="dotnet20sp2 dotnet48 faudio"
|
||||
export PW_DLL_INSTALL="faudio dotnet48 dotnet20sp2"
|
||||
export PW_VULKAN_USE=1
|
||||
|
||||
if [ ! -d "${PORT_WINE_PATH}/data/dist/${PW_WINE_USE}" ] ; then
|
||||
|
@ -251,12 +251,14 @@ start_portwine () {
|
||||
if [[ -d "${PW_PLUGINS_PATH}/default_pfx/" ]] ; then
|
||||
cp -frL "${PW_PLUGINS_PATH}/default_pfx/"* "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/"
|
||||
fi
|
||||
${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINELOADER}" wineboot -i &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINELOADER}" wineboot -u &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
# ${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINESERVER}" -w &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
wait_wineserver &&
|
||||
echo "${PW_WINE_USE}" > "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.wine_ver"
|
||||
elif [[ -z "`cat "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.wine_ver" | grep ${PW_WINE_USE}`" ]] ; then
|
||||
check_dirs_and_files_in_pfx
|
||||
${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINELOADER}" wineboot -i &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
# ${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINESERVER}" -w &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
wait_wineserver &&
|
||||
echo "${PW_WINE_USE}" > "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.wine_ver"
|
||||
fi
|
||||
@ -281,11 +283,18 @@ start_portwine () {
|
||||
d3dcompiler_47 d3dx10_33 d3dx10_34 d3dx10_35 d3dx10_36 d3dx10_37 d3dx10_38 d3dx10_39 d3dx10_40 d3dx10_41 \
|
||||
d3dx10_42 d3dx10_43 d3dx10 d3dx11_42 d3dx11_43 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29 d3dx9_30 \
|
||||
d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dx9_37 d3dx9_38 d3dx9_39 d3dx9_40 d3dx9_41 d3dx9_42 d3dx9_43
|
||||
do
|
||||
try_force_link_file "${PW_PLUGINS_PATH}/d3d_extras/x64/${d3d_extras_from_plugins}.dll" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/"
|
||||
try_force_link_file "${PW_PLUGINS_PATH}/d3d_extras/x32/${d3d_extras_from_plugins}.dll" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/"
|
||||
if [[ "${PW_D3D_EXTRAS_DISABLE}" != 1 ]] ; then
|
||||
do
|
||||
if [[ "${PW_USE_D3D_EXTRAS}" == 1 ]] ; then
|
||||
try_force_link_file "${PW_PLUGINS_PATH}/d3d_extras/x64/${d3d_extras_from_plugins}.dll" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/"
|
||||
try_force_link_file "${PW_PLUGINS_PATH}/d3d_extras/x32/${d3d_extras_from_plugins}.dll" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/"
|
||||
var_winedlloverride_update "${d3d_extras_from_plugins}=n,b"
|
||||
else
|
||||
if ! try_force_link_file "${WINEDIR}"/lib/wine/fakedlls/${d3d_extras_from_plugins}.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/"
|
||||
then try_force_link_file "${WINEDIR}"/lib/wine/i386-windows/${d3d_extras_from_plugins}.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/"
|
||||
fi
|
||||
if ! try_force_link_file "${WINEDIR}"/lib64/wine/fakedlls/${d3d_extras_from_plugins}.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/"
|
||||
then try_force_link_file "${WINEDIR}"/lib64/wine/x86_64-windows/${d3d_extras_from_plugins}.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/"
|
||||
fi
|
||||
fi
|
||||
if [[ -z "`grep "${d3d_extras_from_plugins}" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log"`" ]] ; then
|
||||
echo "${d3d_extras_from_plugins}" >> "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log"
|
||||
@ -536,7 +545,7 @@ pw_run () {
|
||||
LD_PRELOAD="${PW_LD_PRELOAD}" \
|
||||
VK_LAYER_PATH="${PW_VK_LAYER_PATH}" \
|
||||
VK_INSTANCE_LAYERS=${PW_VK_INSTANCE_LAYERS} \
|
||||
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]} &>>/dev/null
|
||||
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]}
|
||||
fi
|
||||
}
|
||||
export -f pw_run
|
||||
|
@ -19,20 +19,20 @@ if [[ "${XDG_SESSION_TYPE}" = "wayland" ]] && [[ ! -f "${PORT_WINE_TMP_PATH}/che
|
||||
echo "1" > "${PORT_WINE_TMP_PATH}/check_wayland"
|
||||
fi
|
||||
|
||||
if [[ -n `basename "${portwine_exe}" | grep .ppack` ]] ; then
|
||||
if [[ -n $(basename "${portwine_exe}" | grep .ppack) ]] ; then
|
||||
export PW_ADD_TO_ARGS_IN_RUNTIME="--xterm"
|
||||
unset PW_SANDBOX_HOME_PATH
|
||||
pw_init_runtime
|
||||
export PW_PREFIX_NAME=`basename "$1" | awk -F'.' '{print $1}'`
|
||||
export PW_PREFIX_NAME=$(basename "$1" | awk -F'.' '{print $1}')
|
||||
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" unsquashfs -f -d "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}" "$1" &
|
||||
sleep 10
|
||||
while true ; do
|
||||
if [[ -n `pgrep -a xterm | grep ".ppack" | head -n 1 | awk '{print $1}'` ]] ; then
|
||||
if [[ -n $(pgrep -a xterm | grep ".ppack" | head -n 1 | awk '{print $1}') ]] ; then
|
||||
sleep 0.5
|
||||
else
|
||||
kill -TERM `pgrep -a unsquashfs | grep ".ppack" | head -n 1 | awk '{print $1}'`
|
||||
kill -TERM $(pgrep -a unsquashfs | grep ".ppack" | head -n 1 | awk '{print $1}')
|
||||
sleep 0.3
|
||||
if [[ -z "`pgrep -a unsquashfs | grep ".ppack" | head -n 1 | awk '{print $1}'`" ]]
|
||||
if [[ -z "$(pgrep -a unsquashfs | grep ".ppack" | head -n 1 | awk '{print $1}')" ]]
|
||||
then break
|
||||
else sleep 0.3
|
||||
fi
|
||||
@ -41,7 +41,7 @@ if [[ -n `basename "${portwine_exe}" | grep .ppack` ]] ; then
|
||||
if [[ -f "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.create_shortcut" ]] ; then
|
||||
orig_IFS="$IFS"
|
||||
IFS=$'\n'
|
||||
for crfb in `cat "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.create_shortcut"` ; do
|
||||
for crfb in $(cat "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.create_shortcut") ; do
|
||||
export portwine_exe="${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/${crfb}"
|
||||
portwine_create_shortcut "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/${crfb}"
|
||||
done
|
||||
@ -52,14 +52,14 @@ fi
|
||||
|
||||
portwine_launch () {
|
||||
start_portwine
|
||||
PORTWINE_MSI=`basename "${portwine_exe}" | grep .msi`
|
||||
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`
|
||||
PORTWINE_MSI=$(basename "${portwine_exe}" | grep .msi)
|
||||
PORTWINE_BAT=$(basename "${portwine_exe}" | grep .bat)
|
||||
if [[ -n "${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} "$portwine_exe"
|
||||
elif [ ! -z "${PORTWINE_MSI}" ]; then
|
||||
elif [ -n "${PORTWINE_MSI}" ]; then
|
||||
pw_run msiexec /i "$portwine_exe"
|
||||
elif [[ ! -z "${PORTWINE_BAT}" || ! -z "${portwine_exe}" ]] ; then
|
||||
elif [[ -n "${PORTWINE_BAT}" || -n "${portwine_exe}" ]] ; then
|
||||
pw_run ${WINE_WIN_START} "$portwine_exe"
|
||||
else
|
||||
pw_run winefile
|
||||
@ -86,13 +86,13 @@ portwine_start_debug () {
|
||||
echo "RUNTIME is enabled" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
fi
|
||||
echo "----------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
if [ ! -z "${portwine_exe}" ] ; then
|
||||
if [ -n "${portwine_exe}" ] ; then
|
||||
echo "Debug for programm:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "${portwine_exe}" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "---------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
fi
|
||||
echo "GLIBC version:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo `ldd --version | grep -m1 ldd | awk '{print $NF}'` >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo $(ldd --version | grep -m1 ldd | awk '{print $NF}') >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "--------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
if [[ "${PW_VULKAN_USE}" = "0" ]] ; then
|
||||
echo "PW_VULKAN_USE=${PW_VULKAN_USE} - DX9-11 to OpenGL" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
@ -131,7 +131,7 @@ portwine_start_debug () {
|
||||
echo "-----------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "Graphic cards and drivers:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo 'lspci -k | grep -EA3 VGA|3D|Display:' >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo `lspci -k | grep -EA3 'VGA|3D|Display'` >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo $(lspci -k | grep -EA3 'VGA|3D|Display') >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
[[ `which glxinfo` ]] && glxinfo -B >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo " " >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "inxi -G:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
@ -145,13 +145,13 @@ portwine_start_debug () {
|
||||
else
|
||||
echo "Vkcube test completed with error" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
fi
|
||||
if [ ! -x "`which gamemoderun 2>/dev/null`" ]
|
||||
if [ ! -x "$(which gamemoderun 2>/dev/null)" ]
|
||||
then
|
||||
echo "---------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "!!!gamemod not found!!!" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
fi
|
||||
echo "-------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
if [[ "${PW_D3D_EXTRAS_DISABLE}" == 1 ]]
|
||||
if [[ "${PW_USE_D3D_EXTRAS}" != 1 ]]
|
||||
then echo "D3D_EXTRAS - disabled" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
else echo "D3D_EXTRAS - enabled" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
fi
|
||||
@ -159,7 +159,7 @@ portwine_start_debug () {
|
||||
echo "winetricks.log:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
cat "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" | sed -e /"^d3dcomp*"/d -e /"^d3dx*"/d >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
echo "-----------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
if [ ! -z "${PORTWINE_DB_FILE}" ]; then
|
||||
if [ -n "${PORTWINE_DB_FILE}" ]; then
|
||||
echo "Use ${PORTWINE_DB_FILE} db file:" >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
cat "${PORTWINE_DB_FILE}" | sed '/##/d' >> "${PORT_WINE_PATH}/${portname}.log"
|
||||
else
|
||||
@ -178,11 +178,11 @@ portwine_start_debug () {
|
||||
sleep 3
|
||||
pw_stop_progress_bar_cover
|
||||
unset PW_TIMER
|
||||
while read -r line || [[ ! -z `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
|
||||
if [[ ! -z "${line}" ]] && [[ -z "`echo "${line}" | grep -i "gstreamer"`" ]] \
|
||||
&& [[ -z "`echo "${line}" | grep -i "kerberos"`" ]] \
|
||||
&& [[ -z "`echo "${line}" | grep -i "ntlm"`" ]]
|
||||
if [[ -n "${line}" ]] && [[ -z "$(echo "${line}" | grep -i "gstreamer")" ]] \
|
||||
&& [[ -z "$(echo "${line}" | grep -i "kerberos")" ]] \
|
||||
&& [[ -z "$(echo "${line}" | grep -i "ntlm")" ]]
|
||||
then
|
||||
echo "# ${line}"
|
||||
fi
|
||||
@ -251,31 +251,31 @@ pw_prefix_manager () {
|
||||
IFS=$'\n'
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/dll_list_tmp"
|
||||
while read PW_BOOL_IN_DLL_LIST ; do
|
||||
if [[ -z `echo "${PW_BOOL_IN_DLL_LIST}" | grep -E 'd3d|directx9|dont_use|dxvk|vkd3d|galliumnine|faudio1'` ]] ; then
|
||||
if grep "^`echo ${PW_BOOL_IN_DLL_LIST} | awk '{print $1}'`$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/dll_list_tmp"
|
||||
if [[ -z $(echo "${PW_BOOL_IN_DLL_LIST}" | grep -E 'd3d|directx9|dont_use|dxvk|vkd3d|galliumnine|faudio1') ]] ; then
|
||||
if grep "^$(echo ${PW_BOOL_IN_DLL_LIST} | awk '{print $1}')$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n$(echo ${PW_BOOL_IN_DLL_LIST} | awk '{print $1}')\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/dll_list_tmp"
|
||||
else
|
||||
echo -e "false\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/dll_list_tmp"
|
||||
echo -e "false\n`echo "${PW_BOOL_IN_DLL_LIST}" | awk '{print $1}'`\n`echo ${PW_BOOL_IN_DLL_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/dll_list_tmp"
|
||||
fi
|
||||
fi
|
||||
done < "${PORT_WINE_TMP_PATH}/dll_list"
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
while read PW_BOOL_IN_FONTS_LIST ; do
|
||||
if [[ -z `echo "${PW_BOOL_IN_FONTS_LIST}" | grep -E 'dont_use'` ]] ; then
|
||||
if grep "^`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
if [[ -z $(echo "${PW_BOOL_IN_FONTS_LIST}" | grep -E 'dont_use') ]] ; then
|
||||
if grep "^$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{ $1 = ""; print substr($0, 2) }')" >> "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
else
|
||||
echo -e "false\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
echo -e "false\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{ $1 = ""; print substr($0, 2) }')" >> "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
fi
|
||||
fi
|
||||
done < "${PORT_WINE_TMP_PATH}/fonts_list"
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
while read PW_BOOL_IN_FONTS_LIST ; do
|
||||
if [[ -z `echo "${PW_BOOL_IN_FONTS_LIST}" | grep -E 'vista|alldlls|autostart_|bad|good|win|videomemory|vd=|isolate_home'` ]] ; then
|
||||
if grep "^`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
if [[ -z $(echo "${PW_BOOL_IN_FONTS_LIST}" | grep -E 'vista|alldlls|autostart_|bad|good|win|videomemory|vd=|isolate_home') ]] ; then
|
||||
if grep "^$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')$" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" ; then
|
||||
echo -e "true\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{ $1 = ""; print substr($0, 2) }')" >> "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
else
|
||||
echo -e "false\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{print $1}'`\n`echo ${PW_BOOL_IN_FONTS_LIST} | awk '{ $1 = ""; print substr($0, 2) }'`" >> "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
echo -e "false\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{print $1}')\n$(echo "${PW_BOOL_IN_FONTS_LIST}" | awk '{ $1 = ""; print substr($0, 2) }')" >> "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
fi
|
||||
fi
|
||||
done < "${PORT_WINE_TMP_PATH}/settings_list"
|
||||
@ -305,16 +305,16 @@ pw_prefix_manager () {
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/fonts_list_tmp"
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/settings_list_tmp"
|
||||
|
||||
for STPFXMNG in `cat "${PORT_WINE_TMP_PATH}/to_winetricks"` ; do
|
||||
grep `echo ${STPFXMNG} | awk -F'|' '{print $2}'` "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" &>/dev/null
|
||||
for STPFXMNG in $(cat "${PORT_WINE_TMP_PATH}/to_winetricks") ; do
|
||||
grep $(echo ${STPFXMNG} | awk -F'|' '{print $2}') "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" &>/dev/null
|
||||
if [ "$?" == "1" ] ; then
|
||||
[[ -n "${STPFXMNG}" ]] && SET_FROM_PFX_MANAGER+="`echo ${STPFXMNG} | awk -F'|' '{print $2}'` "
|
||||
[[ -n "${STPFXMNG}" ]] && SET_FROM_PFX_MANAGER+="$(echo "${STPFXMNG}" | awk -F'|' '{print $2}') "
|
||||
fi
|
||||
done
|
||||
IFS=${old_IFS}
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/to_winetricks"
|
||||
|
||||
if [[ ! -z ${SET_FROM_PFX_MANAGER} ]] ; then
|
||||
if [[ -n ${SET_FROM_PFX_MANAGER} ]] ; then
|
||||
export PW_ADD_TO_ARGS_IN_RUNTIME="--xterm"
|
||||
pw_init_runtime
|
||||
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${PORT_WINE_TMP_PATH}/winetricks" -q -r -f ${SET_FROM_PFX_MANAGER}
|
||||
@ -335,11 +335,11 @@ pw_winetricks () {
|
||||
pw_stop_progress_bar
|
||||
echo "WINETRICKS..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
unset PW_TIMER
|
||||
while read -r line || [[ ! -z `pgrep -a yad | grep "yad_new --text-info --tail --no-buttons --title="WINETRICKS"" | awk '{print $1}'` ]] ; do
|
||||
while read -r line || [[ -n $(pgrep -a yad | grep "yad_new --text-info --tail --no-buttons --title="WINETRICKS"" | awk '{print $1}') ]] ; do
|
||||
sleep 0.005
|
||||
if [[ ! -z "${line}" ]] && [[ -z "`echo "${line}" | grep -i "gstreamer"`" ]] \
|
||||
&& [[ -z "`echo "${line}" | grep -i "kerberos"`" ]] \
|
||||
&& [[ -z "`echo "${line}" | grep -i "ntlm"`" ]]
|
||||
if [[ -n "${line}" ]] && [[ -z "$(echo "${line}" | grep -i "gstreamer")" ]] \
|
||||
&& [[ -z "$(echo "${line}" | grep -i "kerberos")" ]] \
|
||||
&& [[ -z "$(echo "${line}" | grep -i "ntlm")" ]]
|
||||
then
|
||||
echo "# ${line}"
|
||||
fi
|
||||
@ -351,17 +351,17 @@ pw_winetricks () {
|
||||
--auto-close --skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y &
|
||||
"${PORT_WINE_TMP_PATH}/winetricks" -q -r -f &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
kill -s SIGTERM "`pgrep -a yad_new | grep "title=WINETRICKS" | awk '{print $1}'`" > /dev/null 2>&1
|
||||
kill -s SIGTERM "$(pgrep -a yad_new | grep "title=WINETRICKS" | awk '{print $1}')" > /dev/null 2>&1
|
||||
stop_portwine
|
||||
}
|
||||
|
||||
pw_create_prefix_backup () {
|
||||
cd "$HOME"
|
||||
PW_PREFIX_TO_BACKUP=`"${pw_yad_new}" --file --directory --borders=5 --width=650 --height=500 --auto-close --center \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "BACKUP PREFIX TO..."`
|
||||
PW_PREFIX_TO_BACKUP=$("${pw_yad_new}" --file --directory --borders=5 --width=650 --height=500 --auto-close --center \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "BACKUP PREFIX TO...")
|
||||
YAD_STATUS="$?"
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
|
||||
if [[ ! -z "`grep "/${PW_PREFIX_NAME}/" "${PORT_WINE_PATH}"/*.desktop `" ]] ; then
|
||||
if [[ -n "$(grep "/${PW_PREFIX_NAME}/" "${PORT_WINE_PATH}"/*.desktop )" ]] ; then
|
||||
try_remove_file "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.create_shortcut"
|
||||
grep "/${PW_PREFIX_NAME}/" "${PORT_WINE_PATH}"/*.desktop | awk -F"/${PW_PREFIX_NAME}/" '{print $2}' \
|
||||
| awk -F\" '{print $1}' > "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.create_shortcut"
|
||||
@ -373,12 +373,12 @@ pw_create_prefix_backup () {
|
||||
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" mksquashfs "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}" "${PW_PREFIX_TO_BACKUP}/${PW_PREFIX_NAME}.ppack.part" -comp zstd &
|
||||
sleep 10
|
||||
while true ; do
|
||||
if [[ -n `pgrep -a xterm | grep ".ppack.part" | head -n 1 | awk '{print $1}'` ]] ; then
|
||||
if [[ -n $(pgrep -a xterm | grep ".ppack.part" | head -n 1 | awk '{print $1}') ]] ; then
|
||||
sleep 0.5
|
||||
else
|
||||
kill -TERM `pgrep -a mksquashfs | grep ".ppack.part" | head -n 1 | awk '{print $1}'`
|
||||
kill -TERM $(pgrep -a mksquashfs | grep ".ppack.part" | head -n 1 | awk '{print $1}')
|
||||
sleep 0.3
|
||||
if [[ -z "`pgrep -a mksquashfs | grep ".ppack.part" | head -n 1 | awk '{print $1}'`" ]]
|
||||
if [[ -z "$(pgrep -a mksquashfs | grep ".ppack.part" | head -n 1 | awk '{print $1}')" ]]
|
||||
then break
|
||||
else sleep 0.3
|
||||
fi
|
||||
@ -398,7 +398,7 @@ pw_edit_db () {
|
||||
PW_MANGOHUD PW_MANGOHUD_USER_CONF ENABLE_VKBASALT PW_NO_ESYNC PW_NO_FSYNC PW_USE_DXR10 PW_USE_DXR11 \
|
||||
PW_USE_NVAPI_AND_DLSS PW_WINE_FULLSCREEN_FSR PW_OLD_GL_STRING PW_HIDE_NVIDIA_GPU PW_FORCE_USE_VSYNC PW_VIRTUAL_DESKTOP \
|
||||
PW_WINEDBG_DISABLE PW_USE_TERMINAL PW_WINE_ALLOW_XIM PW_HEAP_DELAY_FREE PW_GUI_DISABLED_CS PW_USE_GSTREAMER \
|
||||
PW_USE_GAMEMODE PW_DX12_DISABLE PW_PRIME_RENDER_OFFLOAD PW_D3D_EXTRAS_DISABLE PW_FIX_VIDEO_IN_GAME PW_USE_AMDVLK_DRIVER \
|
||||
PW_USE_GAMEMODE PW_DX12_DISABLE PW_PRIME_RENDER_OFFLOAD PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME PW_USE_AMDVLK_DRIVER \
|
||||
PW_FORCE_LARGE_ADDRESS_AWARE PW_USE_SHADER_CACHE
|
||||
if [ "$?" == 0 ] ; then
|
||||
/usr/bin/env bash -c ${pw_full_command_line[*]} &
|
||||
@ -421,28 +421,21 @@ pw_autoinstall_from_db () {
|
||||
export PW_DISABLED_CREATE_DB=1
|
||||
export PW_MANGOHUD=0
|
||||
export ENABLE_VKBASALT=0
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
. "${PORT_SCRIPTS_PATH}/pw_autoinstall/${PW_YAD_SET}"
|
||||
}
|
||||
|
||||
gui_about_portproton () {
|
||||
"${pw_yad_new}" --about --pname=PortProton \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
|
||||
--pversion="${install_ver}\n(scripts v. ${scripts_install_ver})" \
|
||||
--image=help-about \
|
||||
--copyright="Copyright © 2022 Castro-Fidel (PortWINE-Linux.ru)" \
|
||||
--comments="Порт для запуска Windows игр и приложений в GNU/Linux" \
|
||||
--license=MIT \
|
||||
--authors="Castro-Fidel",,"Выражаем особую благодарность в помоще проекту:",Cefeiko,Dezert1r,Taz_mania,Anton_Famillianov,gavr,RidBowt,chal55rus,UserDiscord \
|
||||
--website=portwine-linux.ru/ \
|
||||
--website-label=portwine-linux.ru
|
||||
gui_credits () {
|
||||
. "${PORT_SCRIPTS_PATH}/credits"
|
||||
}
|
||||
export -f gui_about_portproton
|
||||
export -f gui_credits
|
||||
|
||||
###MAIN###
|
||||
export PW_PREFIX_NAME="`echo "${PW_PREFIX_NAME}" | sed -e s/[[:blank:]]/_/g`"
|
||||
PW_ALL_PREFIXES=`ls "${PORT_WINE_PATH}/data/prefixes/" | sed -e s/"${PW_PREFIX_NAME}$"//g`
|
||||
PW_PREFIX_NAME="$(echo "${PW_PREFIX_NAME}" | sed -e s/[[:blank:]]/_/g)"
|
||||
PW_ALL_PREFIXES=$(ls "${PORT_WINE_PATH}/data/prefixes/" | sed -e s/"${PW_PREFIX_NAME}$"//g)
|
||||
export PW_PREFIX_NAME PW_ALL_PREFIXES
|
||||
|
||||
# if [[ ! -z "${PORTWINE_DB}" ]] && [[ -z `echo "${PW_PREFIX_NAME}" | grep -i "$(echo "${PORTWINE_DB}" | sed -e s/[[:blank:]]/_/g)"` ]] ; then
|
||||
# if [[ -n "${PORTWINE_DB}" ]] && [[ -z `echo "${PW_PREFIX_NAME}" | grep -i "$(echo "${PORTWINE_DB}" | sed -e s/[[:blank:]]/_/g)"` ]] ; then
|
||||
# export PW_PREFIX_NAME="${PW_PREFIX_NAME}!`echo "${PORTWINE_DB}" | sed -e s/[[:blank:]]/_/g`"
|
||||
# fi
|
||||
|
||||
@ -450,23 +443,23 @@ unset PW_ADD_PREFIXES_TO_GUI
|
||||
IFS_OLD=$IFS
|
||||
IFS=$'\n'
|
||||
for PAIG in ${PW_ALL_PREFIXES[*]} ; do
|
||||
[[ "${PAIG}" != `echo "${PORTWINE_DB^^}" | sed -e s/[[:blank:]]/_/g` ]] && \
|
||||
[[ "${PAIG}" != $(echo "${PORTWINE_DB^^}" | sed -e s/[[:blank:]]/_/g) ]] && \
|
||||
export PW_ADD_PREFIXES_TO_GUI="${PW_ADD_PREFIXES_TO_GUI}!${PAIG}"
|
||||
done
|
||||
IFS=$IFS_OLD
|
||||
export PW_ADD_PREFIXES_TO_GUI="${PW_PREFIX_NAME^^}${PW_ADD_PREFIXES_TO_GUI}"
|
||||
|
||||
PW_ALL_DIST=`ls "${PORT_WINE_PATH}/data/dist/" | sed -e s/"${PW_PROTON_GE_VER}$//g" | sed -e s/"${PW_PROTON_STEAM_VER}$//g"`
|
||||
PW_ALL_DIST=$(ls "${PORT_WINE_PATH}/data/dist/" | sed -e s/"${PW_PROTON_GE_VER}$//g" | sed -e s/"${PW_PROTON_STEAM_VER}$//g")
|
||||
unset DIST_ADD_TO_GUI
|
||||
for DAIG in ${PW_ALL_DIST}
|
||||
do
|
||||
export DIST_ADD_TO_GUI="${DIST_ADD_TO_GUI}!${DAIG}"
|
||||
done
|
||||
if [ ! -z "${PORTWINE_DB_FILE}" ] ; then
|
||||
[ -z "${PW_COMMENT_DB}" ] && PW_COMMENT_DB="PortWINE database file for "\"${PORTWINE_DB}"\" was found."
|
||||
if [[ -n "${PORTWINE_DB_FILE}" ]] ; then
|
||||
[[ -z "${PW_COMMENT_DB}" ]] && PW_COMMENT_DB="PortWINE database file for "\"${PORTWINE_DB}"\" was found."
|
||||
if [[ -z "${PW_VULKAN_USE}" || -z "${PW_WINE_USE}" ]] ; then
|
||||
unset PW_GUI_DISABLED_CS
|
||||
[ -z "${PW_VULKAN_USE}" ] && export PW_VULKAN_USE=1
|
||||
[[ -z "${PW_VULKAN_USE}" ]] && export PW_VULKAN_USE=1
|
||||
fi
|
||||
case "${PW_VULKAN_USE}" in
|
||||
"0") export PW_DEFAULT_VULKAN_USE='OPENGL!VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!GALLIUM_NINE (native DX9 on MESA)' ;;
|
||||
@ -474,9 +467,9 @@ if [ ! -z "${PORTWINE_DB_FILE}" ] ; then
|
||||
"3") export PW_DEFAULT_VULKAN_USE='GALLIUM_NINE (native DX9 on MESA)!VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL' ;;
|
||||
*) export PW_DEFAULT_VULKAN_USE='VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL!GALLIUM_NINE (native DX9 on MESA)' ;;
|
||||
esac
|
||||
if [[ ! -z `echo "${PW_WINE_USE}" | grep "^PROTON_STEAM$"` ]] ; then
|
||||
if [[ -n $(echo "${PW_WINE_USE}" | grep "^PROTON_STEAM$") ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_PROTON_STEAM_VER}!${PW_PROTON_GE_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
elif [[ ! -z `echo "${PW_WINE_USE}" | grep "^PROTON_GE$"` ]] ; then
|
||||
elif [[ -n $(echo "${PW_WINE_USE}" | grep "^PROTON_GE$") ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_PROTON_GE_VER}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
else
|
||||
if [[ "${PW_WINE_USE}" == "${PW_PROTON_STEAM_VER}" ]] ; then
|
||||
@ -484,15 +477,15 @@ if [ ! -z "${PORTWINE_DB_FILE}" ] ; then
|
||||
elif [[ "${PW_WINE_USE}" == "${PW_PROTON_GE_VER}" ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_WINE_USE}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
else
|
||||
export DIST_ADD_TO_GUI=`echo ${DIST_ADD_TO_GUI} | sed -e s/"\!${PW_WINE_USE}$//g"`
|
||||
export DIST_ADD_TO_GUI=$(echo "${DIST_ADD_TO_GUI}" | sed -e s/"\!${PW_WINE_USE}$//g")
|
||||
export PW_DEFAULT_WINE_USE="${PW_WINE_USE}!${PW_PROTON_GE_VER}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
export PW_DEFAULT_VULKAN_USE='VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL!GALLIUM_NINE (native DX9 on MESA)'
|
||||
if [[ ! -z `echo "${PW_WINE_USE}" | grep "^PROTON_STEAM$"` ]] ; then
|
||||
if [[ -n $(echo "${PW_WINE_USE}" | grep "^PROTON_STEAM$") ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_PROTON_STEAM_VER}!${PW_PROTON_GE_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
elif [[ ! -z `echo "${PW_WINE_USE}" | grep "^PROTON_GE$"` ]] ; then
|
||||
elif [[ -n $(echo "${PW_WINE_USE}" | grep "^PROTON_GE$") ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_PROTON_GE_VER}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
else
|
||||
if [[ "${PW_WINE_USE}" == "${PW_PROTON_STEAM_VER}" ]] ; then
|
||||
@ -500,13 +493,13 @@ else
|
||||
elif [[ "${PW_WINE_USE}" == "${PW_PROTON_GE_VER}" ]] ; then
|
||||
export PW_DEFAULT_WINE_USE="${PW_WINE_USE}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
else
|
||||
export DIST_ADD_TO_GUI=`echo ${DIST_ADD_TO_GUI} | sed -e s/"\!${PW_WINE_USE}$//g"`
|
||||
export DIST_ADD_TO_GUI=$(echo "${DIST_ADD_TO_GUI}" | sed -e s/"\!${PW_WINE_USE}$//g")
|
||||
export PW_DEFAULT_WINE_USE="${PW_WINE_USE}!${PW_PROTON_GE_VER}!${PW_PROTON_STEAM_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
|
||||
fi
|
||||
fi
|
||||
unset PW_GUI_DISABLED_CS
|
||||
fi
|
||||
if [ ! -z "${portwine_exe}" ]; then
|
||||
if [ -n "${portwine_exe}" ]; then
|
||||
if [[ -z "${PW_GUI_DISABLED_CS}" || "${PW_GUI_DISABLED_CS}" == 0 ]] ; then
|
||||
pw_create_gui_png
|
||||
grep -il "${portwine_exe}" "${HOME}/.local/share/applications"/*.desktop
|
||||
@ -529,22 +522,22 @@ if [ ! -z "${portwine_exe}" ]; then
|
||||
--button='LAUNCH'!!"${loc_launch}":106 )
|
||||
export PW_YAD_SET="$?"
|
||||
if [[ "$PW_YAD_SET" == "1" || "$PW_YAD_SET" == "252" ]] ; then exit 0 ; fi
|
||||
export VULKAN_MOD=`echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $1}'`
|
||||
export PW_WINE_VER=`echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $2}'`
|
||||
export PW_PREFIX_NAME=`echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $3}' | sed -e s/[[:blank:]]/_/g`
|
||||
if [[ -z "${PW_PREFIX_NAME}" ]] || [[ ! -z "`echo "${PW_PREFIX_NAME}" | grep -E '^_.*' `" ]] ; then
|
||||
export VULKAN_MOD=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $1}')
|
||||
export PW_WINE_VER=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $2}')
|
||||
export PW_PREFIX_NAME=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $3}' | sed -e s/[[:blank:]]/_/g)
|
||||
if [[ -z "${PW_PREFIX_NAME}" ]] || [[ -n "$(echo "${PW_PREFIX_NAME}" | grep -E '^_.*' )" ]] ; then
|
||||
export PW_PREFIX_NAME="DEFAULT"
|
||||
else
|
||||
export PW_PREFIX_NAME="${PW_PREFIX_NAME^^}"
|
||||
fi
|
||||
elif [ ! -z "${PORTWINE_DB_FILE}" ]; then
|
||||
elif [ -n "${PORTWINE_DB_FILE}" ]; then
|
||||
portwine_launch
|
||||
fi
|
||||
else
|
||||
button_click () {
|
||||
[ ! -z "$1" ] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form"
|
||||
if [ ! -z `pidof -s yad` ] || [ ! -z `pidof -s yad_new` ] ; then
|
||||
kill -s SIGUSR1 `pgrep -a yad | grep "\-\-key=${KEY} \-\-notebook" | awk '{print $1}'` > /dev/null 2>&1
|
||||
[[ -n "$1" ]] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form"
|
||||
if [[ -n $(pidof -s yad) ]] || [[ -n $(pidof -s yad_new) ]] ; then
|
||||
kill -s SIGUSR1 $(pgrep -a yad | grep "\-\-key=${KEY} \-\-notebook" | awk '{print $1}') > /dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
export -f button_click
|
||||
@ -563,7 +556,7 @@ else
|
||||
rm -fr "${PORT_WINE_PATH}"
|
||||
rm -fr "${PORT_WINE_TMP_PATH}"
|
||||
rm -fr "${HOME}/PortWINE"
|
||||
rm -f `grep -il PortProton "${HOME}/.local/share/applications"/*`
|
||||
rm -f $(grep -il PortProton "${HOME}/.local/share/applications"/*)
|
||||
update-desktop-database -q "${HOME}/.local/share/applications"
|
||||
fi
|
||||
exit 0
|
||||
@ -589,8 +582,8 @@ else
|
||||
|
||||
gui_open_scripts_from_backup () {
|
||||
cd "${PORT_WINE_TMP_PATH}/scripts_backup/"
|
||||
PW_SCRIPT_FROM_BACKUP=`"${pw_yad_new}" --file --borders=5 --width=650 --height=500 --auto-close --center \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "SCRIPTS FROM BACKUP" --file-filter="backup_scripts|scripts_v*.tar.gz"`
|
||||
PW_SCRIPT_FROM_BACKUP=$("${pw_yad_new}" --file --borders=5 --width=650 --height=500 --auto-close --center \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "SCRIPTS FROM BACKUP" --file-filter="backup_scripts|scripts_v*.tar.gz")
|
||||
YAD_STATUS="$?"
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
|
||||
unpack_tar_gz "$PW_SCRIPT_FROM_BACKUP" "${PORT_WINE_PATH}/data/"
|
||||
@ -606,8 +599,8 @@ else
|
||||
--field=" $loc_gui_upd_pp"!""!"":"FBTN" '@bash -c "button_click gui_pw_update"' \
|
||||
--field=" $loc_gui_changelog"!""!"":"FBTN" '@bash -c "button_click open_changelog"' \
|
||||
--field=" $loc_gui_edit_usc"!""!"":"FBTN" '@bash -c "button_click gui_open_user_conf"' \
|
||||
--field=" $loc_gui_scripts_fb"!""!"":"FBTN" '@bash -c "button_click gui_open_scripts_from_backup"' &
|
||||
# --field=" $loc_gui_about_us"!""!"":"FBTN" '@bash -c "button_click gui_about_portproton"' &
|
||||
--field=" $loc_gui_scripts_fb"!""!"":"FBTN" '@bash -c "button_click gui_open_scripts_from_backup"' \
|
||||
--field=" $loc_gui_credits"!""!"":"FBTN" '@bash -c "button_click gui_credits"' &
|
||||
|
||||
"${pw_yad_new}" --plug=${KEY} --tabnum=3 --columns=3 --align-buttons --form --separator=";" \
|
||||
--field=" 3D API : :CB" "VULKAN (DXVK and VKD3D)!VULKAN (WINE DXGI)!OPENGL!GALLIUM_NINE (native DX9 on MESA)" \
|
||||
@ -663,15 +656,15 @@ else
|
||||
YAD_STATUS="$?"
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
|
||||
|
||||
if [ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ] ; then
|
||||
export PW_YAD_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form" | head -n 1 | awk '{print $1}'`
|
||||
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ]]; then
|
||||
export PW_YAD_SET=$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_form" | head -n 1 | awk '{print $1}')
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form"
|
||||
fi
|
||||
if [ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" ] ; then
|
||||
export VULKAN_MOD=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $1}'`
|
||||
export PW_PREFIX_NAME=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $2}' | sed -e "s/[[:blank:]]/_/g" `
|
||||
export PW_WINE_VER=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $3}'`
|
||||
if [[ -z "${PW_PREFIX_NAME}" ]] || [[ ! -z "`echo "${PW_PREFIX_NAME}" | grep -E '^_.*' `" ]] ; then
|
||||
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" ]] ; then
|
||||
export VULKAN_MOD=$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $1}')
|
||||
export PW_PREFIX_NAME=$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $2}' | sed -e "s/[[:blank:]]/_/g" )
|
||||
export PW_WINE_VER=$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk -F";" '{print $3}')
|
||||
if [[ -z "${PW_PREFIX_NAME}" ]] || [[ -n "$(echo "${PW_PREFIX_NAME}" | grep -E '^_.*' )" ]] ; then
|
||||
export PW_PREFIX_NAME="DEFAULT"
|
||||
else
|
||||
export PW_PREFIX_NAME="${PW_PREFIX_NAME^^}"
|
||||
@ -681,21 +674,21 @@ else
|
||||
export PW_DISABLED_CREATE_DB=1
|
||||
fi
|
||||
|
||||
if [[ ! -z "${VULKAN_MOD}" && "${VULKAN_MOD}" = "OPENGL" ]]
|
||||
if [[ -n "${VULKAN_MOD}" && "${VULKAN_MOD}" = "OPENGL" ]]
|
||||
then export PW_VULKAN_USE="0"
|
||||
elif [[ ! -z "${VULKAN_MOD}" && "${VULKAN_MOD}" = "VULKAN (DXVK and VKD3D)" ]]
|
||||
elif [[ -n "${VULKAN_MOD}" && "${VULKAN_MOD}" = "VULKAN (DXVK and VKD3D)" ]]
|
||||
then export PW_VULKAN_USE="1"
|
||||
elif [[ ! -z "${VULKAN_MOD}" && "${VULKAN_MOD}" = "VULKAN (WINE DXGI)" ]]
|
||||
elif [[ -n "${VULKAN_MOD}" && "${VULKAN_MOD}" = "VULKAN (WINE DXGI)" ]]
|
||||
then export PW_VULKAN_USE="2"
|
||||
elif [[ ! -z "${VULKAN_MOD}" && "${VULKAN_MOD}" = "GALLIUM_NINE (native DX9 on MESA)" ]]
|
||||
elif [[ -n "${VULKAN_MOD}" && "${VULKAN_MOD}" = "GALLIUM_NINE (native DX9 on MESA)" ]]
|
||||
then export PW_VULKAN_USE="3"
|
||||
fi
|
||||
|
||||
init_wine_ver
|
||||
|
||||
if [[ -z "${PW_DISABLED_CREATE_DB}" ]] ; then
|
||||
if [[ ! -z "${PORTWINE_DB}" ]] && [[ -z "${PORTWINE_DB_FILE}" ]] ; then
|
||||
PORTWINE_DB_FILE=`grep -il "\#${PORTWINE_DB}.exe" "${PORT_SCRIPTS_PATH}/portwine_db"/*`
|
||||
if [[ -n "${PORTWINE_DB}" ]] && [[ -z "${PORTWINE_DB_FILE}" ]] ; then
|
||||
PORTWINE_DB_FILE=$(grep -il "\#${PORTWINE_DB}.exe" "${PORT_SCRIPTS_PATH}/portwine_db"/*)
|
||||
if [[ -z "${PORTWINE_DB_FILE}" ]] ; then
|
||||
echo "#!/usr/bin/env bash" > "${portwine_exe}".ppdb
|
||||
echo "#Author: "${USER}"" >> "${portwine_exe}".ppdb
|
||||
@ -730,7 +723,7 @@ case "$PW_YAD_SET" in
|
||||
open_changelog) open_changelog ;;
|
||||
120) gui_vkBasalt ;;
|
||||
pw_create_prefix_backup) pw_create_prefix_backup ;;
|
||||
gui_about_portproton) gui_about_portproton ;;
|
||||
gui_credits) gui_credits ;;
|
||||
PW_*) pw_autoinstall_from_db ;;
|
||||
esac
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#Author: Castro-Fidel (PortWINE-Linux.ru)
|
||||
#SCRIPTS_NEXT_VERSION=2106
|
||||
#SCRIPTS_NEXT_VERSION=2118
|
||||
########################################################################
|
||||
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
|
||||
@ -21,10 +21,11 @@ export PW_USE_TERMINAL=0
|
||||
export PW_WINEDBG_DISABLE=1
|
||||
export PW_WINDOWS_VER="10"
|
||||
export WINEARCH="win64"
|
||||
export PW_LIBS_VER="_v29"
|
||||
export PW_LIBS_VER="_v31"
|
||||
export PORTWINE_URL="https://portwine-linux.ru/"
|
||||
export GDK_BACKEND="x11"
|
||||
export PW_USE_GSTREAMER="1"
|
||||
export PW_USE_GSTREAMER=1
|
||||
export PW_USE_D3D_EXTRAS=1
|
||||
export PW_PREFIX_NAME="DEFAULT"
|
||||
export WINE_WIN_START="start.exe /i /unix"
|
||||
export PW_USE_SHADER_CACHE=1
|
||||
@ -34,10 +35,10 @@ export PW_FORCE_LARGE_ADDRESS_AWARE=1
|
||||
export PW_WINE_USE=PROTON_GE
|
||||
export PW_PLUGINS_VER="_v5"
|
||||
###WINE_PROTON_STEAM###
|
||||
export PW_STEAM_VER="7.0-2"
|
||||
export PW_STEAM_VER="7.0-3"
|
||||
export PW_PROTON_STEAM_VER="PROTON_STEAM_${PW_STEAM_VER}"
|
||||
###WINE_PROTON_GE###
|
||||
export PW_GE_VER="7-16"
|
||||
export PW_GE_VER="7-20"
|
||||
export PW_PROTON_GE_VER="PROTON_GE_${PW_GE_VER}"
|
||||
export PW_WINE_FULLSCREEN_FSR=0
|
||||
###WINE_PROTON_PW_FOR_GALLIUM_NINE###
|
||||
@ -48,7 +49,7 @@ pw_install_dll_in_prefix ()
|
||||
{
|
||||
case $PW_PREFIX_NAME in
|
||||
DEFAULT) export PW_MUST_HAVE_DLL="physx mfc42 vcrun2019" ;;
|
||||
DOTNET) export PW_MUST_HAVE_DLL="physx mfc42 vcrun2019 dotnet20sp2 dotnet48 faudio" ;;
|
||||
DOTNET) export PW_MUST_HAVE_DLL="physx mfc42 vcrun2019 faudio dotnet48 dotnet20sp2" ;;
|
||||
*) export PW_MUST_HAVE_DLL="" ;;
|
||||
esac
|
||||
}
|
||||
|
Reference in New Issue
Block a user