Unverified Commit 8715bddc authored by Mikhail Tergoev's avatar Mikhail Tergoev Committed by GitHub

Merge branch 'devel' into added-main-menu1

parents b67bf2bd 7b5b381a
<div align="center"> <div style="text-align: center;">
<img src="https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/img/gui/portproton.svg" width="64"> <img src="https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/img/gui/portproton.svg" width="64">
<h1 align="center">PortProton</h1> <h1 style="text-align: center;">PortProton</h1>
<a href="https://github.com/Castro-Fidel/PortWINE/blob/master/LICENSE"> <a href="https://github.com/Castro-Fidel/PortWINE/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/Castro-Fidel/PortWine?logo=github" alt="GitHub License"> <img src="https://img.shields.io/github/license/Castro-Fidel/PortWine?logo=github" alt="GitHub License">
</a> </a>
...@@ -10,22 +10,24 @@ ...@@ -10,22 +10,24 @@
</a> </a>
<img src="https://img.shields.io/youtube/channel/subscribers/UCbI8OJx2D3q-4QKt4LffXTw?style=flat&logo=youtube" alt="YouTube Channel Subscribers"> <img src="https://img.shields.io/youtube/channel/subscribers/UCbI8OJx2D3q-4QKt4LffXTw?style=flat&logo=youtube" alt="YouTube Channel Subscribers">
<br/> <br/>
<p align="center"> <p style="text-align: center;">
Проект, призванный сделать запуск Windows-игр в Linux простым и удобным как для начинающих, так и для опытных пользователей.<br> Проект, призванный сделать запуск Windows-игр в Linux простым и удобным как для начинающих, так и для опытных пользователей.<br>
Проект стремится сделать запуск игр (и другого программного обеспечения) максимально простым, но в то же время предоставляет гибкие настройки для опытных пользователей. Проект стремится сделать запуск игр (и другого программного обеспечения) максимально простым, но в то же время предоставляет гибкие настройки для опытных пользователей.
</p> </p>
</div> </div>
# **Язык README** # **Язык README**
**Русский** - [English](README.md) **Русский** - [English](README.md)
## Внимание ## Внимание
**Официальный сайт проекта** с сентября 2022 года: https://linux-gaming.ru. **Любой другой сайт - фальшивка!** **Официальный сайт проекта** с сентября 2022 года: https://linux-gaming.ru. **Любой другой сайт - фальшивка!**
## Особенности ## Особенности
- Основан на версии WINE от Valve (Proton) и ее модификациях (Proton GE). - Основан на версии WINE от Valve (Proton) и ее модификациях (Proton GE).
Включает набор скриптов, объединенных с самим wine-proton, контейнер Steam Runtime Sniper с добавлением портированных версий MANGOHUD (вывод полезной информации в окно игры: FPS, FrameTime, CPU, GPU и т.д.) и vkBasalt (улучшение графики в играх, очень хорош в связке с FSR, DLSS) + множество уже настроенных оптимизаций для максимальной производительности. Включает набор скриптов, объединенных с самим wine-proton, контейнер Steam Runtime Sniper с добавлением портированных версий MANGOHUD (вывод полезной информации в окно игры: FPS, FrameTime, CPU, GPU и т.д.) и vkBasalt (улучшение графики в играх, очень хорош в связке с FSR, DLSS) + множество уже настроенных оптимизаций для максимальной производительности.
- Реализована автоматическая установка одним щелчком мыши (на вкладке АВТОУСТАНОВКА) популярных лаунчеров, таких как: WGC, Epic Games, Battle.net, Origin, EVE Online, RockStar, Ubisoft connect , League of Legends и многие другие. - Реализована автоматическая установка одним щелчком мыши (на вкладке АВТОУСТАНОВКА) популярных лаунчеров, таких как: WGC, Epic Games, Battle.net, Origin, EVE Online, RockStar, Ubisoft connect , League of Legends и многие другие.
...@@ -37,7 +39,7 @@ ...@@ -37,7 +39,7 @@
* WINE-PROTON: https://github.com/ValveSoftware/Proton * 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
## Установка с помощью пакетов ## Установка с помощью пакетов
...@@ -55,6 +57,7 @@ exit ...@@ -55,6 +57,7 @@ exit
``` ```
`Вариант установки с помощью eepm`: `Вариант установки с помощью eepm`:
```sh ```sh
su - su -
...@@ -66,13 +69,13 @@ exit ...@@ -66,13 +69,13 @@ exit
``` ```
* **Ubuntu 24.04**, **Debian 12**, **Linux Mint 21.x** **Deepin** : * **Ubuntu 24.04**, **Debian 12**, **Linux Mint 21.x** **Deepin** :
[portproton_1.4-1_amd64.deb](https://github.com/Castro-Fidel/PortProton_dpkg/releases/download/portproton_1.4-1_amd64/portproton_1.4-1_amd64.deb) [portproton_1.7-2_amd64.deb](https://github.com/Castro-Fidel/PortProton_dpkg/releases/download/portproton_1.7-2_amd64/portproton_1.7-2_amd64.deb)
* **Arch Linux** и производные (Manjaro, Garuda, и т.д.) : * **Arch Linux** и производные (Manjaro, Garuda, и т.д.) :
[AUR](https://aur.archlinux.org/packages/portproton) [AUR](https://aur.archlinux.org/packages/portproton)
* **OpenSuse**: * **openSUSE**:
[OBS](https://software.opensuse.org/download/package?package=portproton&project=home%3ABoria138%3APortProton) [OBS](https://software.opensuse.org/download/package?package=portproton&project=home%3ABoria138%3APortProton)
* **ROSA Linux** устанавливается с помощью этой команды: * **ROSA Linux** устанавливается с помощью этой команды:
...@@ -194,6 +197,7 @@ sudo eopkg it curl file bubblewrap curl icoutils tar zstd cabextract xdg-utils ...@@ -194,6 +197,7 @@ sudo eopkg it curl file bubblewrap curl icoutils tar zstd cabextract xdg-utils
``` ```
* **Void** * **Void**
```sh ```sh
sudo xbps-install -Su void-repo-multilib sudo xbps-install -Su void-repo-multilib
......
<div align="center"> <div style="text-align: center;">
<img src="https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/img/gui/portproton.svg" width="64"> <img src="https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/img/gui/portproton.svg" width="64">
<h1 align="center">PortProton</h1> <h1 style="text-align: center;">PortProton</h1>
<a href="https://github.com/Castro-Fidel/PortProton_ALT/blob/main/LICENSE"> <a href="https://github.com/Castro-Fidel/PortProton_ALT/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/Castro-Fidel/PortWINE" alt="GitHub License"> <img src="https://img.shields.io/github/license/Castro-Fidel/PortWINE" alt="GitHub License">
</a> </a>
...@@ -10,40 +10,45 @@ ...@@ -10,40 +10,45 @@
</a> </a>
<img src="https://img.shields.io/youtube/channel/subscribers/UCbI8OJx2D3q-4QKt4LffXTw?style=flat&logo=youtube" alt="YouTube Channel Subscribers"> <img src="https://img.shields.io/youtube/channel/subscribers/UCbI8OJx2D3q-4QKt4LffXTw?style=flat&logo=youtube" alt="YouTube Channel Subscribers">
<br/> <br/>
<p align="center"> <p style="text-align: center;">
A project designed to make running Windows games on Linux easy and convenient for both beginners and advanced users.<br> A project designed to make running Windows games on Linux easy and convenient for both beginners and advanced users.<br>
The project aims to simplify the process of launching games (and other software) while also providing flexible settings for experienced users. The project aims to simplify the process of launching games (and other software) while also providing flexible settings for experienced users.
</p> </p>
</div> </div>
# **Readme Language** # **Readme Language**
**English** - [Русский](README-RU.md) **English** - [Русский](README-RU.md)
## Attention ## Attention
The **official website of the project** since September 2022: https://linux-gaming.ru. **Any other site is fake!**
The **official website of the project** since September 2022 is: https://linux-gaming.ru. **Any other site is fake!**
## Features ## Features
- Based on the version of WINE from Valve (Proton) and its modifications (Proton GE). - 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. Includes a set of scripts combined with wine-proton itself, a Steam Runtime Sniper container with the addition of
ported mangoHud (output useful information over the game window: FPS, frametime, CPU, GPU, etc.),
- 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. vkBasalt (improvement of graphics in games, great alongside FSR or DLSS) versions,
and 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. - 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!** **PLEASE DON'T REPORT BUGS ENCOUNTERED WITH THIS AT WINEHQ OR VALVE SOFTWARE!**
## **Wine sources used in PortWINE:** ## **Wine sources used in PortWINE:**
* WINE-PROTON: https://github.com/ValveSoftware/Proton * 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 ## Installation using packages
* **Alt Linux** (package in the official repository) is installed with the command: * **Alt Linux** (package in the official repository) is installed with the command:
`apt-get`: `apt-get`:
```sh ```sh
su - su -
...@@ -55,6 +60,7 @@ exit ...@@ -55,6 +60,7 @@ exit
``` ```
`epm`: `epm`:
```sh ```sh
su - su -
...@@ -71,14 +77,14 @@ exit ...@@ -71,14 +77,14 @@ exit
sudo urpmi portproton sudo urpmi portproton
``` ```
* **Ubuntu 24.04**, **Debian 12**, **Linux Mint 21.x** **Deepin** : * **Ubuntu 24.04**, **Debian 12**, **Linux Mint 21.x**, and **Deepin**:
[portproton_1.4-1_amd64.deb](https://github.com/Castro-Fidel/PortProton_dpkg/releases/download/portproton_1.4-1_amd64/portproton_1.4-1_amd64.deb) [portproton_1.7-2_amd64.deb](https://github.com/Castro-Fidel/PortProton_dpkg/releases/download/portproton_1.7-2_amd64/portproton_1.7-2_amd64.deb)
* **Arch Linux** and derivatives (Manjaro, Garuda, etc.) : * **Arch Linux** and derivatives (Manjaro, Garuda, etc.):
[AUR](https://aur.archlinux.org/packages/portproton) [AUR](https://aur.archlinux.org/packages/portproton)
* **OpenSuse**: * **openSUSE**:
[OBS](https://software.opensuse.org/download/package?package=portproton&project=home%3ABoria138%3APortProton) [OBS](https://software.opensuse.org/download/package?package=portproton&project=home%3ABoria138%3APortProton)
* **Fedora 38+** and **Nobara**: * **Fedora 38+** and **Nobara**:
...@@ -88,7 +94,7 @@ sudo dnf copr enable boria138/portproton ...@@ -88,7 +94,7 @@ sudo dnf copr enable boria138/portproton
sudo dnf install portproton sudo dnf install portproton
``` ```
* **FlatHub** * **Flathub**
```sh ```sh
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
...@@ -97,7 +103,7 @@ flatpak install flathub ru.linux_gaming.PortProton ...@@ -97,7 +103,7 @@ flatpak install flathub ru.linux_gaming.PortProton
## Universal (manual) installation ## Universal (manual) installation
**ATTENTION** : with the universal method of installing PortProton, dependencies must be installed manually! **ATTENTION**: with the universal method of installing PortProton, dependencies must be installed manually!
```sh ```sh
wget -c "https://github.com/Castro-Fidel/PortProton_ALT/raw/main/portproton" && sh portproton wget -c "https://github.com/Castro-Fidel/PortProton_ALT/raw/main/portproton" && sh portproton
...@@ -107,7 +113,7 @@ wget -c "https://github.com/Castro-Fidel/PortProton_ALT/raw/main/portproton" && ...@@ -107,7 +113,7 @@ wget -c "https://github.com/Castro-Fidel/PortProton_ALT/raw/main/portproton" &&
* **NVIDIA graphics card users** * **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) 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 (32-bit games don't work without it)
* **Ubuntu / Linux Mint / Pop!_OS** * **Ubuntu / Linux Mint / Pop!_OS**
...@@ -196,6 +202,7 @@ sudo eopkg it curl file bubblewrap curl icoutils tar zstd cabextract xdg-utils o ...@@ -196,6 +202,7 @@ sudo eopkg it curl file bubblewrap curl icoutils tar zstd cabextract xdg-utils o
``` ```
* **Void** * **Void**
```sh ```sh
sudo xbps-install -Su void-repo-multilib sudo xbps-install -Su void-repo-multilib
......
...@@ -2,6 +2,29 @@ You can help us in the development of the project on the website: https://linux- ...@@ -2,6 +2,29 @@ You can help us in the development of the project on the website: https://linux-
---------------------------------------- ----------------------------------------
Changelog: Changelog:
###Scripts version 2328### / Date: 25.07.2024 / Download update size: 4 megabytes
* updated icon for setup files (thanks to Dervart)
* fixed interface alignment for KDE
* added automatic creation of shortcuts by checking "create shortcut" in the installer itself (thanks to Boria138 and Htylol)
* settings file editor switched to yad (thanks to Htylol)
###Scripts version 2327### / stable / Date: 25.07.2024 / Download update size: 4 megabytes
* cumulative update to the stable version of PortProton scripts
###Scripts version 2326### / Date: 24.07.2024 / Download update size: 4 megabytes
* updated README.md (thanks Kazevic)
* user.conf editor switched to yad (thanks to Htylol)
* fixed disk mounting in dosdevice (thanks to Boria138)
* added drive S which always links to the directory with games in STEAM (for easy installing mods in games from the STEAM library)
###Scripts version 2325### / Date: 22.07.2024 / Download update size: 4 megabytes
* updated Caliber auto-installation
* fixed Yabause icon display
* fixed adding icons when creating a shortcut to the steam library (thanks to Boria138)
* updated gamescope settings window (thanks to Htylol)
* updated language selection function (thanks to Htylol)
* fix icon creation on systems using SELinux (thanks to Boria138)
###Scripts version 2324### / Date: 18.07.2024 / Download update size: 4 megabytes ###Scripts version 2324### / Date: 18.07.2024 / Download update size: 4 megabytes
* updated Russian translation (thanks to Eljeyna) * updated Russian translation (thanks to Eljeyna)
......
...@@ -2,6 +2,29 @@ ...@@ -2,6 +2,29 @@
----------------------------------------- -----------------------------------------
История изменений: История изменений:
###Scripts version 2328### / Дата: 25.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* обновлена иконка для setup файлов (спасибо Dervart)
* исправлена центровка интерфейса для KDE
* добавлено автоматическое создание ярлыков галочкой "создать ярлык" в самом установщике (спасибо Boria138 и Htylol)
* редактор файлов настроек переключен на yad (спасибо Htylol)
###Scripts version 2327### / stable / Дата: 25.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* кумулятивное обновление стабильной версии скриптов PortProton
###Scripts version 2326### / Дата: 24.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* обновлен README.md (спасибо Kazevic)
* редактор user.conf переключен на yad (спасибо Htylol)
* исправлена работа монтирования дисков в dosdevice (спасибо Boria138)
* добавлен диск S который всегда ссылается на каталог с играми в STEAM (для удобства установки русификаторов и модов в игры из библиотеки STEAM)
###Scripts version 2325### / Дата: 22.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* обновлена автоустановка Caliber
* исправлено отображение иконки Yabause
* исправлено добавление иконок при создании ярлыка в библиотеку steam (спасибо Boria138)
* обновлено окно настроек gamescope (спасибо Htylol)
* обновлена функция выбора языка (спасибо Htylol)
* исправление создания иконок в системах использующих SELinux (спасибо Boria138)
###Scripts version 2324### / Дата: 18.07.2024 / Размер скачиваемого обновления: 4 мегабайта ###Scripts version 2324### / Дата: 18.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* доработана русская локализация (спасибо Eljeyna) * доработана русская локализация (спасибо Eljeyna)
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
# based on https://github.com/sonic2kk/steamtinkerlaunch/blob/master/steamtinkerlaunch # based on https://github.com/sonic2kk/steamtinkerlaunch/blob/master/steamtinkerlaunch
PROGNAME="PortProton" PROGNAME="PortProton"
name_desktop_png="${name_desktop// /_}"
NOSTAPPNAME="$name_desktop" NOSTAPPNAME="$name_desktop"
NOSTEXEPATH="\"${STEAM_SCRIPTS}/${name_desktop}.sh\"" NOSTEXEPATH="\"${STEAM_SCRIPTS}/${name_desktop}.sh\""
# NOSTSTDIR="\"${PATH_TO_GAME}\"" # NOSTSTDIR="\"${PATH_TO_GAME}\""
if [[ -z "${NOSTSTDIR}" ]] ; then if [[ -z "${NOSTSTDIR}" ]] ; then
NOSTSTDIR="\"${STEAM_SCRIPTS}\"" NOSTSTDIR="\"${STEAM_SCRIPTS}\""
fi fi
NOSTICONPATH="${PORT_WINE_PATH}/data/img/${name_desktop}.png" NOSTICONPATH="${PORT_WINE_PATH}/data/img/$name_desktop_png.png"
BASESTEAMGRIDDBAPI="https://www.steamgriddb.com/api/v2" BASESTEAMGRIDDBAPI="https://www.steamgriddb.com/api/v2"
## How Non-Steam AppIDs work, because it took me almost a year to figure this out ## How Non-Steam AppIDs work, because it took me almost a year to figure this out
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
export PW_VULKAN_USE="2" export PW_VULKAN_USE="2"
export PW_WINE_USE="PROTON_LG" export PW_WINE_USE="PROTON_LG"
export PW_PREFIX_NAME="CALIBER" export PW_PREFIX_NAME="CALIBER"
export DISABLE_CP_DEFPFX=1 # export DISABLE_CP_DEFPFX="1"
export WINEDLLOVERRIDES="xaudio2_7=n,b" export WINEDLLOVERRIDES="xaudio2_7=n,b"
#!/usr/bin/env bash #!/usr/bin/env bash
#Author: linux-gaming.ru #Author: linux-gaming.ru
#setup.exe #setup.exe
#Setup.exe
#SETUP.exe
#.msi #.msi
#Rating=5 #Rating=5
################################################ ################################################
export PW_DISABLED_CREATE_DB=1 export PW_DISABLED_CREATE_DB=1
export PW_ICON_FOR_YAD="${PORT_WINE_PATH}/data/img/setup.png"
export PW_VULKAN_USE=1 export PW_VULKAN_USE=1
export PW_MANGOHUD=0 export PW_MANGOHUD=0
export PW_NO_FSYNC=1 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. export PW_NO_FSYNC=1 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
...@@ -17,7 +14,3 @@ export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE_ ...@@ -17,7 +14,3 @@ export PW_FORCE_LARGE_ADDRESS_AWARE=1 # Force Wine to enable the LARGE_
export PW_DLL_INSTALL="" export PW_DLL_INSTALL=""
# export WINEDLLOVERRIDES="mscoree,mshtml=" # export WINEDLLOVERRIDES="mscoree,mshtml="
export PW_WINE_USE=WINE_LG export PW_WINE_USE=WINE_LG
add_in_stop_portwine () {
pw_find_exe news
}
...@@ -4,12 +4,10 @@ ...@@ -4,12 +4,10 @@
export PW_PREFIX_NAME="CALIBER" export PW_PREFIX_NAME="CALIBER"
export LAUNCH_PARAMETERS=("/VERYSILENT" "/CLOSEAPPLICATIONS") export LAUNCH_PARAMETERS=("/VERYSILENT" "/CLOSEAPPLICATIONS")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/CaliberSetup.exe" export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/CaliberSetup.exe"
export PW_WINE_USE=PROTON_LG export PW_WINE_USE="PROTON_LG"
export DISABLE_CP_DEFPFX=1 # export DISABLE_CP_DEFPFX="1"
export PORTWINE_CREATE_SHORTCUT_NAME="CALIBER" export PORTWINE_CREATE_SHORTCUT_NAME="CALIBER"
gui_proton_downloader silent "${PW_WINE_USE}"
start_portwine start_portwine
if try_download "https://cdn.playcaliber.com/caliber-s3/p1/a88c3b70f76a0e56b1e08b62c9895cfe/launcher/setup/CaliberSetup.exe" "${PW_AUTOINSTALL_EXE}" no_mirror if try_download "https://cdn.playcaliber.com/caliber-s3/p1/a88c3b70f76a0e56b1e08b62c9895cfe/launcher/setup/CaliberSetup.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
then then
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
######################################################################## ########################################################################
export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Ubisoft Game Launcher") export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Ubisoft Game Launcher")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/UbisoftConnectInstaller.exe" export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/UbisoftConnectInstaller.exe"
export PORTWINE_CREATE_SHORTCUT_NAME="Ubisoft Connect"
start_portwine start_portwine
if try_download "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe" "${PW_AUTOINSTALL_EXE}" no_mirror if try_download "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
then then
......
...@@ -87,7 +87,7 @@ unset CHK_SYMLINK_FILE PW_MESA_GL_VERSION_OVERRIDE PW_VKD3D_FEATURE_LEVEL PATH_T ...@@ -87,7 +87,7 @@ unset CHK_SYMLINK_FILE PW_MESA_GL_VERSION_OVERRIDE PW_VKD3D_FEATURE_LEVEL PATH_T
unset PW_PREFIX_NAME WINEPREFIX VULKAN_MOD PW_WINE_VER PW_ADD_TO_ARGS_IN_RUNTIME PW_GAMEMODERUN_SLR AMD_VULKAN_ICD PW_WINE_CPU_TOPOLOGY unset PW_PREFIX_NAME WINEPREFIX VULKAN_MOD PW_WINE_VER PW_ADD_TO_ARGS_IN_RUNTIME PW_GAMEMODERUN_SLR AMD_VULKAN_ICD PW_WINE_CPU_TOPOLOGY
unset PW_NAME_D_NAME PW_NAME_D_ICON PW_NAME_D_EXEC PW_EXEC_FROM_DESKTOP PW_ALL_DF PW_GENERATE_BUTTONS PW_NAME_D_ICON PW_NAME_D_ICON_48 unset PW_NAME_D_NAME PW_NAME_D_ICON PW_NAME_D_EXEC PW_EXEC_FROM_DESKTOP PW_ALL_DF PW_GENERATE_BUTTONS PW_NAME_D_ICON PW_NAME_D_ICON_48
unset MANGOHUD_CONFIG FPS_LIMIT PW_WINE_USE WINEDLLPATH WINE WINEDIR WINELOADER WINESERVER PW_USE_RUNTIME PORTWINE_CREATE_SHORTCUT_NAME MIRROR unset MANGOHUD_CONFIG FPS_LIMIT PW_WINE_USE WINEDLLPATH WINE WINEDIR WINELOADER WINESERVER PW_USE_RUNTIME PORTWINE_CREATE_SHORTCUT_NAME MIRROR
unset PW_LOCALE_SELECT PW_SETTINGS_INDICATION PW_GUI_START PW_AUTOINSTALL_EXE NOSTSTDIR unset PW_LOCALE_SELECT PW_SETTINGS_INDICATION PW_GUI_START PW_AUTOINSTALL_EXE NOSTSTDIR USE_DUPLICATE_GUI
export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp" export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp"
rm -f "$PORT_WINE_TMP_PATH"/*{exe,msi,tar}* rm -f "$PORT_WINE_TMP_PATH"/*{exe,msi,tar}*
...@@ -172,8 +172,9 @@ then ...@@ -172,8 +172,9 @@ then
else else
# shellcheck source=/dev/null # shellcheck source=/dev/null
source "$PW_GUI_THEMES_PATH/default.pptheme" source "$PW_GUI_THEMES_PATH/default.pptheme"
echo 'export GUI_THEME="default"' >> "$USER_CONF" echo 'export GUI_THEME="default"' >> "$USER_CONF"
fi fi
[[ "$XDG_SESSION_DESKTOP" == "KDE" ]] && export YAD_OPTIONS+="--center"
# choose branch # choose branch
if [[ -z "$BRANCH" ]] ; then if [[ -z "$BRANCH" ]] ; then
...@@ -551,7 +552,7 @@ if [[ -f "${portwine_exe}" ]] ; then ...@@ -551,7 +552,7 @@ if [[ -f "${portwine_exe}" ]] ; then
export TAB_START="1" export TAB_START="1"
fi fi
"${pw_yad}" --key=$KEY_START --notebook --active-tab=${TAB_START} \ "${pw_yad}" --key=$KEY_START --notebook --active-tab="${TAB_START}" \
--gui-type="settings-notebook" \ --gui-type="settings-notebook" \
--width="${PW_START_SIZE_W}" --tab-pos="${PW_TAB_POSITON}" --center \ --width="${PW_START_SIZE_W}" --tab-pos="${PW_TAB_POSITON}" --center \
--title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" --expand \ --title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" --expand \
...@@ -636,14 +637,17 @@ else ...@@ -636,14 +637,17 @@ else
else PW_GUI_SORT_TABS=(2 3 4 5 1) else PW_GUI_SORT_TABS=(2 3 4 5 1)
fi fi
PW_GENERATE_BUTTONS="--field= $(gettext "Create shortcut...")!${PW_GUI_ICON_PATH}/find_48.svg!:FBTN%@bash -c \"button_click pw_find_exe\"%" PW_GENERATE_BUTTONS="--field= $(gettext "Create shortcut...")!${PW_GUI_ICON_PATH}/find_48.svg!:FBTN%@bash -c \"button_click pw_find_exe\"%"
if grep -i "[Desktop Entry]" "${PORT_WINE_PATH}/duplicate"/* &>/dev/null ; then
PW_GENERATE_BUTTONS+="--field= $(gettext "Duplicates")!${PW_GUI_ICON_PATH}/duplicate.svg!:FBTN%@bash -c \"button_click pw_duplicate\"%"
fi
for PW_DESKTOP_FILES in ${PW_ALL_DF} ; do for PW_DESKTOP_FILES in ${PW_ALL_DF} ; do
PW_NAME_D_ICON="$(grep Icon "${PORT_WINE_PATH}/${PW_DESKTOP_FILES}" | awk -F= '{print $2}')" PW_NAME_D_ICON="$(grep Icon "${PORT_WINE_PATH}/${PW_DESKTOP_FILES}" | awk -F= '{print $2}')"
PW_NAME_D_ICON_48="${PW_NAME_D_ICON//".png"/"_48.png"}" PW_NAME_D_ICON_48="${PW_NAME_D_ICON//".png"/"_48.png"}"
if [[ ! -f "${PW_NAME_D_ICON_48}" ]] \ if [[ ! -f "${PW_NAME_D_ICON_48}" ]] \
&& [[ -f "${PW_NAME_D_ICON}" ]] \ && [[ -f "${PW_NAME_D_ICON}" ]] \
&& command -v "convert" 2>/dev/null && command -v "convert" &>/dev/null
then then
convert "${PW_NAME_D_ICON}" -resize 48x48 "${PW_NAME_D_ICON_48}" convert "${PW_NAME_D_ICON}" -resize 48x48 "${PW_NAME_D_ICON_48}" &>/dev/null
fi fi
PW_DESKTOP_HELPER="${PW_DESKTOP_FILES// /@_@}" PW_DESKTOP_HELPER="${PW_DESKTOP_FILES// /@_@}"
PW_GENERATE_BUTTONS+="--field= ${PW_DESKTOP_FILES//".desktop"/""}!${PW_NAME_D_ICON_48}!:FBTN%@bash -c \"run_desktop_b_click "${PW_DESKTOP_HELPER}"\"%" PW_GENERATE_BUTTONS+="--field= ${PW_DESKTOP_FILES//".desktop"/""}!${PW_NAME_D_ICON_48}!:FBTN%@bash -c \"run_desktop_b_click "${PW_DESKTOP_HELPER}"\"%"
...@@ -749,11 +753,14 @@ else ...@@ -749,11 +753,14 @@ else
# --field=" Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/bethesda.png"!"":"FBTN" '@bash -c "button_click PW_BETHESDA"' # --field=" Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/bethesda.png"!"":"FBTN" '@bash -c "button_click PW_BETHESDA"'
# --field=" League of Legends"!"$PW_GUI_ICON_PATH/lol.png"!"":"FBTN" '@bash -c "button_click PW_LOL"' # --field=" League of Legends"!"$PW_GUI_ICON_PATH/lol.png"!"":"FBTN" '@bash -c "button_click PW_LOL"'
export START_FROM_PP_GUI=1 export START_FROM_PP_GUI="1"
if [[ -z ${TAB_MAIN_MENU} ]] ; then
export TAB_MAIN_MENU="1"
fi
if [[ -z "${PW_ALL_DF}" ]] ; then if [[ -z "${PW_ALL_DF}" ]] ; then
"${pw_yad}" --key=$KEY --notebook --expand \ "${pw_yad}" --key=$KEY --notebook --expand \
--gui-type="settings-notebook" \ --gui-type="settings-notebook" --active-tab="${TAB_MAIN_MENU}" \
--width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \ --width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \ --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" \ --title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" \
...@@ -766,7 +773,7 @@ else ...@@ -766,7 +773,7 @@ else
YAD_STATUS="$?" YAD_STATUS="$?"
else else
"${pw_yad}" --key=$KEY --notebook --expand \ "${pw_yad}" --key=$KEY --notebook --expand \
--gui-type="settings-notebook" \ --gui-type="settings-notebook" --active-tab="${TAB_MAIN_MENU}" \
--width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \ --width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \ --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" \ --title "PortProton-${install_ver} (${scripts_install_ver}${BRANCH_VERSION})" \
...@@ -778,11 +785,12 @@ else ...@@ -778,11 +785,12 @@ else
--tab="$(gettext "PORTPROTON SETTINGS")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" 2>/dev/null --tab="$(gettext "PORTPROTON SETTINGS")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" 2>/dev/null
YAD_STATUS="$?" YAD_STATUS="$?"
fi fi
unset TAB_MAIN_MENU
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
pw_yad_set_form pw_yad_set_form
pw_yad_form_vulkan pw_yad_form_vulkan
export PW_DISABLED_CREATE_DB=1 export PW_DISABLED_CREATE_DB="1"
fi fi
case "${VULKAN_MOD}" in case "${VULKAN_MOD}" in
...@@ -832,6 +840,7 @@ fi ...@@ -832,6 +840,7 @@ fi
gui_credits) gui_credits ;; gui_credits) gui_credits ;;
pw_start_cont_xterm) pw_start_cont_xterm ;; pw_start_cont_xterm) pw_start_cont_xterm ;;
pw_find_exe) pw_find_exe ;; pw_find_exe) pw_find_exe ;;
pw_duplicate) pw_duplicate ;;
PW_*) pw_autoinstall_from_db ;; PW_*) pw_autoinstall_from_db ;;
*.desktop) run_desktop_b_click ;; *.desktop) run_desktop_b_click ;;
1|252|*) exit 0 ;; 1|252|*) exit 0 ;;
......
#!/usr/bin/env bash #!/usr/bin/env bash
#Author: Castro-Fidel (linux-gaming.ru) #Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=2324 #SCRIPTS_NEXT_VERSION=2328
#SCRIPTS_STABLE_VERSION=2320 #SCRIPTS_STABLE_VERSION=2327
######################################################################## ########################################################################
export LANGUAGES_LIST="ru es" export LANGUAGES_LIST="ru es"
export PW_VKBASALT="0" export PW_VKBASALT="0"
......
...@@ -23,6 +23,9 @@ export TAB_SIZE=28 ...@@ -23,6 +23,9 @@ export TAB_SIZE=28
export PW_MAIN_SIZE_W=1100 export PW_MAIN_SIZE_W=1100
export PW_MAIN_SIZE_H=350 export PW_MAIN_SIZE_H=350
export PW_DUPLICATE_SIZE_W=1100
export PW_DUPLICATE_SIZE_H=350
export PW_START_SIZE_W=600 export PW_START_SIZE_W=600
export PW_START_SIZE_H=350 export PW_START_SIZE_H=350
export PW_TAB_POSITON=top export PW_TAB_POSITON=top
......
...@@ -11,7 +11,6 @@ export YAD_OPTIONS="--css=$THEME_PATH/style.css \ ...@@ -11,7 +11,6 @@ export YAD_OPTIONS="--css=$THEME_PATH/style.css \
--keep-icon-size \ --keep-icon-size \
--buttons-layout=expand \ --buttons-layout=expand \
--class=PortProton \ --class=PortProton \
--center \
--gui-type-height=2 \ --gui-type-height=2 \
--gui-type-width=2 \ --gui-type-width=2 \
" "
...@@ -24,10 +23,13 @@ export BUTTON_SIZE=32 # 24, 28, 32, 36, 40 ...@@ -24,10 +23,13 @@ export BUTTON_SIZE=32 # 24, 28, 32, 36, 40
export TAB_SIZE=32 # 24, 28, 32, 36, 40 export TAB_SIZE=32 # 24, 28, 32, 36, 40
export PW_MAIN_SIZE_W=1 export PW_MAIN_SIZE_W=500
export PW_MAIN_SIZE_H=350 export PW_MAIN_SIZE_H=350
export PW_START_SIZE_W=1 export PW_DUPLICATE_SIZE_W=1000
export PW_DUPLICATE_SIZE_H=350
export PW_START_SIZE_W=500
export PW_START_SIZE_H=350 export PW_START_SIZE_H=350
export PW_TAB_POSITON=top export PW_TAB_POSITON=top
......
/*Глобальные правила*/ /*Глобальные правила*/
arrow {margin: 3px 5px} /*выравнивание стрелок комбобоксов*/
separator {margin: 0px 0px 0px 0px; background-size:0px; padding-bottom: 0px} /*скрываем сепаратор*/ /*выравнивание стрелок комбобоксов*/
check {min-height: 24px; min-width: 24px} /*увеличиваем чекбоксы*/ arrow {
cellview,entry {min-height: 26px} /*высота комбобоксов, т.к. некоторые темы их делают меньше и вёрстка съезжает*/ margin: 3px 5px
switch {margin: 5px 10px 0px 10px} /*переключатели mangohud и т.д. (в дефолтных темах gtk отступы необходимы. В то время как в некоторых темах выглядит больше, чем нужно. Пример qogir)*/ }
/*скрываем сепаратор*/
separator {
margin: 0px 0px 0px 0px;
background-size: 0px;
padding-bottom: 0px
}
/*увеличиваем чекбоксы*/
check {
min-height: 24px;
min-width: 24px
}
/*высота комбобоксов, т.к. некоторые темы их делают меньше и вёрстка съезжает*/
cellview, entry {
min-height: 26px
}
/*переключатели mangohud и т.д. (в дефолтных темах gtk отступы необходимы. В то время как в некоторых темах выглядит больше, чем нужно. Пример qogir)*/
switch {
margin: 5px 10px 0px 10px
}
/*Правила для окон*/ /*Правила для окон*/
window>box>grid {padding: 5px} /*отступы в расширенных настройках*/
window>box>box>image {padding: 0px 0px 5px 0px;} /*иконка запуска ярлыка*/
window>box>box>box>image {margin-top: 5px} /*иконка в создании ярлыка*/
window>box>box>grid {padding: 0px 5px 5px 0px} /*комбобоксы в запуске ярлыка*/
window>box>label {background: @theme_selected_bg_color; color: @theme_text_color; margin:3px 0px 3px 0px; padding: 5px} /*текст запуска ярлыка*/
window>box>box>label {background: @theme_selected_bg_color; color: @theme_text_color; margin:3px 0px 0px 0px; padding: 5px} /*текст при создании ярлыка и в настройках*/
/*отступы в расширенных настройках*/
window > box > grid {
padding: 5px
}
/*иконка запуска ярлыка*/
window > box > box > image {
padding: 0px 0px 5px 0px;
}
/*иконка в создании ярлыка*/
window > box > box > box > image {
margin-top: 5px
}
/*комбобоксы в запуске ярлыка*/
window > box > box > grid {
padding: 0px 5px 5px 0px
}
/*текст запуска ярлыка*/
window > box > label {
background: @theme_selected_bg_color;
color: @theme_text_color;
margin: 3px 0px 3px 0px;
padding: 5px
}
/*текст при создании ярлыка и в настройках*/
window > box > box > label {
background: @theme_selected_bg_color;
color: @theme_text_color;
margin: 3px 0px 0px 0px;
padding: 5px
}
...@@ -31,9 +31,13 @@ export BUTTON_SIZE=28 # 24, 28, 32, 36, 40 ...@@ -31,9 +31,13 @@ export BUTTON_SIZE=28 # 24, 28, 32, 36, 40
export TAB_SIZE=32 # 24, 28, 32, 36, 40 export TAB_SIZE=32 # 24, 28, 32, 36, 40
# размер главного меню # размер главного меню
export PW_MAIN_SIZE_W=1 export PW_MAIN_SIZE_W=500
export PW_MAIN_SIZE_H=330 export PW_MAIN_SIZE_H=330
# размер окна для дубликатов
export PW_DUPLICATE_SIZE_W=1000
export PW_DUPLICATE_SIZE_H=330
# размер меню запуска и положения табов # размер меню запуска и положения табов
export PW_START_SIZE_W=800 export PW_START_SIZE_W=800
export PW_START_SIZE_H=330 export PW_START_SIZE_H=330
......
/*Глобальные правила*/ /*Глобальные правила*/
arrow {margin: 3px 5px} /*выравнивание стрелок комбобоксов*/
separator {margin: 0px 0px 0px 0px; background-size:0px; padding-bottom: 0px} /*скрываем сепаратор*/ /*выравнивание стрелок комбобоксов*/
check {min-height: 24px; min-width: 24px} /*увеличиваем чекбоксы*/ arrow {
cellview,entry {min-height: 26px} /*высота комбобоксов, т.к. некоторые темы их делают меньше и вёрстка съезжает*/ margin: 3px 5px
switch {margin: 5px 10px 0px 10px} /*переключатели mangohud и т.д. (в дефолтных темах gtk отступы необходимы. В то время как в некоторых темах выглядит больше, чем нужно. Пример qogir)*/ }
/*скрываем сепаратор*/
separator {
margin: 0px 0px 0px 0px;
background-size: 0px;
padding-bottom: 0px
}
/*увеличиваем чекбоксы*/
check {
min-height: 24px;
min-width: 24px
}
/*высота комбобоксов, т.к. некоторые темы их делают меньше и вёрстка съезжает*/
cellview, entry {
min-height: 26px
}
/*переключатели mangohud и т.д. (в дефолтных темах gtk отступы необходимы. В то время как в некоторых темах выглядит больше, чем нужно. Пример qogir)*/
switch {
margin: 5px 10px 0px 10px
}
/*Правила для окон*/ /*Правила для окон*/
window>box>grid {padding: 5px} /*отступы в расширенных настройках*/
window>box>box>image {padding: 0px 0px 5px 0px;} /*иконка запуска ярлыка*/ /*отступы в расширенных настройках*/
window>box>box>box>image {margin-top: 5px} /*иконка в создании ярлыка*/ window > box > grid {
window>box>box>grid {padding: 0px 5px 5px 0px} /*комбобоксы в запуске ярлыка*/ padding: 5px
}
/*иконка запуска ярлыка*/
window > box > box > image {
padding: 0px 0px 5px 0px;
}
/*иконка в создании ярлыка*/
window > box > box > box > image {
margin-top: 5px
}
/*комбобоксы в запуске ярлыка*/
window > box > box > grid {
padding: 0px 5px 5px 0px
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment