From a24afb34cd1b2f427ed89a73074bdd7eeee1acc0 Mon Sep 17 00:00:00 2001
From: Mikhail Tergoev <fidel@altlinux.org>
Date: Wed, 8 May 2024 16:08:24 +0300
Subject: [PATCH] added sort for get other wine

---
 data_from_portwine/scripts/functions_helper              | 2 +-
 data_from_portwine/scripts/portwine_db/SystemShockRemake | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper
index a222a2e0..b33f4035 100755
--- a/data_from_portwine/scripts/functions_helper
+++ b/data_from_portwine/scripts/functions_helper
@@ -3025,7 +3025,7 @@ gui_proton_downloader () {
     fi
 
     # PROTON_LG
-    export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4))
+    export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4 | sort -r))
     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
     if [[ ! -z "${PROTON_PW_GIT}" ]] ; then
         for PPWGIT in ${PROTON_PW_GIT[@]} ; do
diff --git a/data_from_portwine/scripts/portwine_db/SystemShockRemake b/data_from_portwine/scripts/portwine_db/SystemShockRemake
index 1dcdb748..49de82a1 100644
--- a/data_from_portwine/scripts/portwine_db/SystemShockRemake
+++ b/data_from_portwine/scripts/portwine_db/SystemShockRemake
@@ -4,6 +4,5 @@
 #SystemReShock-Win64-Shipping.exe
 #Rating=1-5
 #####################examples###########################
-export PW_WINE_USE="WINE_8.5_LG"
+export PW_WINE_USE="WINE_LG"
 export PW_PREFIX_NAME="SystemShock"
-gui_proton_downloader silent "WINE_8.5_LG"