From d1bf09eda7587f446d0dc2c6570ba0fc7830d615 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Thu, 9 Oct 2025 14:33:53 -0400 Subject: [PATCH] Use gitlab permalink/latest api for async dxvk download url --- lug-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 5bb72ca..f7cee22 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -162,7 +162,7 @@ runner_sources=( ######## DXVK ############################################################## # URLs for downloading dxvk versions -dxvk_async_source="https://gitlab.com/api/v4/projects/Ph42oN%2Fdxvk-gplasync/releases" +dxvk_async_source="https://gitlab.com/api/v4/projects/Ph42oN%2Fdxvk-gplasync/releases/permalink/latest" ######## Requirements ###################################################### @@ -2294,7 +2294,7 @@ install_game() { return 1 fi - # Get the latest RSI installer url + # Fetch the latest RSI installer url set_latest_rsi_installer # Sanity check if [ "$?" -eq 1 ]; then @@ -2707,7 +2707,7 @@ install_async_dxvk() { # Get the file download url # Assume the first item returned by the API is the latest version - download_url="$(curl -s "${dxvk_async_source}?per_page=$max_download_items" | grep -Eo "\"direct_asset_url\": ?\"[^\"]+\"" | grep "releases" | grep -F ".tar.gz" | cut -d '"' -f4 | cut -d '?' -f1 | head -n 1)" + download_url="$(curl -sL "${dxvk_async_source}" | grep -Eo "\"direct_asset_url\": ?\"[^\"]+\"" | grep "releases" | grep -F ".tar.gz" | cut -d '"' -f4 | cut -d '?' -f1)" # Sanity check if [ -z "$download_url" ]; then