Commit ada281b4 authored by Mikhail Tergoev's avatar Mikhail Tergoev

update init_db and silent download wine

parent 0989a796
...@@ -2,6 +2,21 @@ You can help us in the development of the project on the website: https://linux- ...@@ -2,6 +2,21 @@ You can help us in the development of the project on the website: https://linux-
---------------------------------------- ----------------------------------------
Changelog: Changelog:
###Scripts version 2331### / Date: 01.08.2024 / Download update size: 4 megabytes
* fixed downloading of third-party versions of wine registered in the game/program settings file
* Added audio driver selection to settings (thanks Boria138)
* added comment for EVE Online (thanks Boria138)
* improved icon creation functions (thanks to Htylol)
* improved log creation mode (thanks to Htylol)
* fixed deletion of shortcuts containing spaces (thanks to Htylol)
* added/updated settings files for games:
* FarCry 4 (thanks Alek V and Mels)
* Resident Evil 7: Biohazard (thanks Mels)
* Horizon Forbidden West (thanks Mels)
* Bright Memory Infinite (thanks Eljeyna)
* Lord of The Rings: Battle for MiddleEarth (thanks to user1)
* Apollo Justice: Ace Attorney Trilogy (thanks SDR)
###Scripts version 2330### / Date: 30.07.2024 / Download update size: 4 megabytes ###Scripts version 2330### / Date: 30.07.2024 / Download update size: 4 megabytes
* updated tray based on libayatana-appindicator (thanks to Htylol) * updated tray based on libayatana-appindicator (thanks to Htylol)
* added win11 selection to settings (thanks Boria138) * added win11 selection to settings (thanks Boria138)
......
...@@ -2,10 +2,20 @@ ...@@ -2,10 +2,20 @@
----------------------------------------- -----------------------------------------
История изменений: История изменений:
###Scripts version 2331### / Дата: 01.08.2024 / Размер скачиваемого обновления: 4 мегабайта
* исправлено скачивание сторонних версий wine прописанных в файл настроек игры/программы
* в настройки добавлен выбор аудио драйвера (спасибо Boria138) * в настройки добавлен выбор аудио драйвера (спасибо Boria138)
* добавлен комментарий для EVE Online (спасибо Boria138) * добавлен комментарий для "EVE Online" для рабочего окружения "Gnome" (спасибо Boria138)
* улучшены функции создания иконок (спасибо Htylol) * улучшены функции создания иконок (спасибо Htylol)
* улучшен режим создания лога (спасибо Htylol) * улучшен режим создания лога (спасибо Htylol)
* исправлено удаление ярлыков содержащие пробелы (спасибо Htylol)
* добавлены/обновлены файлы настроек для игр:
* FarCry 4 (спасибо Alek V и Мэлс)
* Resident Evil 7: Biohazard (спасибо Мэлс)
* Horizon Forbidden West (спасибо Мэлс)
* Bright Memory Infinite (спасибо Eljeyna)
* Lord of The Rings: Battle for MiddleEarth (спасибо user1)
* Apollo Justice: Ace Attorney Trilogy (спасибо SDR)
###Scripts version 2330### / Дата: 30.07.2024 / Размер скачиваемого обновления: 4 мегабайта ###Scripts version 2330### / Дата: 30.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* обновлен трей на основе libayatana-appindicator (спасибо Htylol) * обновлен трей на основе libayatana-appindicator (спасибо Htylol)
......
...@@ -1328,9 +1328,13 @@ pw_init_db () { ...@@ -1328,9 +1328,13 @@ pw_init_db () {
PORTWINE_DB_FILE="${portwine_exe}".ppdb PORTWINE_DB_FILE="${portwine_exe}".ppdb
# shellcheck source=/dev/null # shellcheck source=/dev/null
source "${PORTWINE_DB_FILE}" source "${PORTWINE_DB_FILE}"
if [[ -z "$(ls "${PORT_WINE_PATH}/prefixes/" | grep -e "^${PW_PREFIX_NAME}$")" ]] ; then if echo "${portwine_exe}" | grep "/prefixes/" &>/dev/null ; then
PW_PREFIX_NAME=$(echo "${portwine_exe}" | awk -F"/prefixes/" '{print $2}' | awk -F"/" '{print $1}') if [[ -z $(ls "${PORT_WINE_PATH}/prefixes/" | grep -e "^${PW_PREFIX_NAME}$") ]] \
edit_db_from_gui PW_PREFIX_NAME || [[ -z $(grep -e "^export PW_PREFIX_NAME=" "${PORTWINE_DB_FILE}" 2>/dev/null) ]]
then
PW_PREFIX_NAME=$(echo "${portwine_exe}" | awk -F"/prefixes/" '{print $2}' | awk -F"/" '{print $1}')
edit_db_from_gui PW_PREFIX_NAME
fi
fi fi
else else
orig_IFS="$IFS" orig_IFS="$IFS"
...@@ -1365,12 +1369,14 @@ pw_init_db () { ...@@ -1365,12 +1369,14 @@ pw_init_db () {
then then
try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb
PORTWINE_DB_FILE="${portwine_exe}".ppdb PORTWINE_DB_FILE="${portwine_exe}".ppdb
fi if echo "${portwine_exe}" | grep "/prefixes/" &>/dev/null ; then
if [[ -z $(ls "${PORT_WINE_PATH}/prefixes/" | grep -e "^${PW_PREFIX_NAME}$") ]] \
if [[ ! -z $(echo "${portwine_exe}" | grep "/data/prefixes/") ]] \ || [[ -z $(grep -e "^export PW_PREFIX_NAME=" "${PORTWINE_DB_FILE}" 2>/dev/null) ]]
&& [[ -z $(echo "${portwine_exe}" | grep "/data/prefixes/DEFAULT/") ]] then
then PW_PREFIX_NAME=$(echo "${portwine_exe}" | awk -F"/prefixes/" '{print $2}' | awk -F"/" '{print $1}')
PW_PREFIX_NAME=$(echo "${portwine_exe}" | awk -F"/prefixes/" '{print $2}' | awk -F"/" '{print $1}') edit_db_from_gui PW_PREFIX_NAME
fi
fi
fi fi
fi fi
...@@ -3308,8 +3314,9 @@ gui_proton_downloader () { ...@@ -3308,8 +3314,9 @@ gui_proton_downloader () {
then PW_WINE_USE="${PW_PROTON_LG_VER}" then PW_WINE_USE="${PW_PROTON_LG_VER}"
elif [[ "$PW_WINE_USE" == WINE_*_LG ]] || [[ "$PW_WINE_USE" == WINE_LG ]] elif [[ "$PW_WINE_USE" == WINE_*_LG ]] || [[ "$PW_WINE_USE" == WINE_LG ]]
then PW_WINE_USE="${PW_WINE_LG_VER}" then PW_WINE_USE="${PW_WINE_LG_VER}"
elif [[ "$1" == "silent" ]] && [[ ! -z "$2" ]]
then PW_WINE_USE="$2"
fi fi
export PW_WINE_USE export PW_WINE_USE
if [[ "$1" == "silent" ]] \ if [[ "$1" == "silent" ]] \
...@@ -3524,7 +3531,8 @@ gui_proton_downloader () { ...@@ -3524,7 +3531,8 @@ gui_proton_downloader () {
/usr/bin/env bash -c ${pw_full_command_line[*]} & /usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0 exit 0
else else
init_wine_ver # init_wine_ver
print_error "$PW_WINE_USE"
for GIVE_WINE_URL in ${WINE_GE_CUSTOM[@]} ${PROTON_GE_GIT[@]} ${WINE_KRON4EK[@]} ${PROTON_PW_GIT[@]} ; do for GIVE_WINE_URL in ${WINE_GE_CUSTOM[@]} ${PROTON_GE_GIT[@]} ${WINE_KRON4EK[@]} ${PROTON_PW_GIT[@]} ; do
if [ ! -z $(echo ${GIVE_WINE_URL} | grep -i "${PW_WINE_USE}") ] ; then if [ ! -z $(echo ${GIVE_WINE_URL} | grep -i "${PW_WINE_USE}") ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}" export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
......
#!/usr/bin/env bash
#Author: rosakodu
#GS456.exe
#Rating=1-5
export PW_VULKAN_USE="2"
export PW_WINE_USE="PROTON_LG_7-54"
export PW_PREFIX_NAME="APOLLO_JUSTICE"
export WINEDLLOVERRIDES="winmm.dll=n,b"
gui_proton_downloader silent "$PW_WINE_USE"
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#HorizonForbiddenWest.exe #HorizonForbiddenWest.exe
#Rating=5 #Rating=5
#####################examples########################### #####################examples###########################
export PW_WINE_USE="WINE-9.5-AMD64" export PW_WINE_USE="PROTON_LG"
export PW_WINDOWS_VER="10" export PW_WINDOWS_VER="10"
export PW_DLL_INSTALL="" export PW_DLL_INSTALL=""
export WINEDLLOVERRIDES="" export WINEDLLOVERRIDES=""
...@@ -13,5 +13,3 @@ export PW_USE_D3D_EXTRAS="1" ...@@ -13,5 +13,3 @@ export PW_USE_D3D_EXTRAS="1"
export PW_FIX_VIDEO_IN_GAME="1" export PW_FIX_VIDEO_IN_GAME="1"
export PW_USE_SHADER_CACHE="0" export PW_USE_SHADER_CACHE="0"
export LAUNCH_PARAMETERS="-EpicPortal" export LAUNCH_PARAMETERS="-EpicPortal"
gui_proton_downloader silent "$PW_WINE_USE"
...@@ -4,5 +4,3 @@ ...@@ -4,5 +4,3 @@
#Rating=5 #Rating=5
#####################examples########################### #####################examples###########################
export PW_WINE_USE="WINE_LG" export PW_WINE_USE="WINE_LG"
gui_proton_downloader silent "$PW_WINE_USE"
#!/usr/bin/env bash
#Author: username
#lotrbfme.exe
#Rating=1-5
export PW_VULKAN_USE="2"
export PW_WINE_USE="PROTON_LG"
export PORTPROTON_NAME="lotrbfme"
export PW_WINDOWS_VER="XP"
export PW_DLL_INSTALL=""
export WINEDLLOVERRIDES=""
#!/usr/bin/env bash #!/usr/bin/env bash
#Author: Castro-Fidel (linux-gaming.ru) #Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=2330 #SCRIPTS_NEXT_VERSION=2331
#SCRIPTS_STABLE_VERSION=2327 #SCRIPTS_STABLE_VERSION=2327
######################################################################## ########################################################################
export LANGUAGES_LIST="ru es" export LANGUAGES_LIST="ru es"
......
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