mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-29 06:44:19 +00:00
added download option for TKG runners
This commit is contained in:
parent
65ac8ae4cd
commit
c627666705
@ -120,6 +120,7 @@ runner_sources=(
|
|||||||
"Molotov/Snatella" "https://api.github.com/repos/snatella/wine-runner-sc/releases"
|
"Molotov/Snatella" "https://api.github.com/repos/snatella/wine-runner-sc/releases"
|
||||||
"/dev/null" "https://api.github.com/repos/gort818/wine-sc-lug/releases"
|
"/dev/null" "https://api.github.com/repos/gort818/wine-sc-lug/releases"
|
||||||
"GloriousEggroll" "https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases"
|
"GloriousEggroll" "https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases"
|
||||||
|
"TKG" "https://api.github.com/repos/Frogging-Family/wine-tkg-git/releases"
|
||||||
)
|
)
|
||||||
|
|
||||||
######## DXVK ##############################################################
|
######## DXVK ##############################################################
|
||||||
@ -172,7 +173,7 @@ lug_wiki="https://github.com/starcitizen-lug/information-howtos/wiki"
|
|||||||
# Github repo and script version info
|
# Github repo and script version info
|
||||||
repo="starcitizen-lug/lug-helper"
|
repo="starcitizen-lug/lug-helper"
|
||||||
releases_url="https://github.com/$repo/releases"
|
releases_url="https://github.com/$repo/releases"
|
||||||
current_version="v1.20"
|
current_version="v1.21"
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -1242,19 +1243,22 @@ download_select_install() {
|
|||||||
download_name="$(basename "${download_versions[i]}" .tar.zst)"
|
download_name="$(basename "${download_versions[i]}" .tar.zst)"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
debug_print exit "Unknown archive filetype in download_select_install function. Aborting."
|
download_name="skip"
|
||||||
|
debug_print continue "Unknown archive filetype in download_select_install function. Offending String: ${download_versions[i]}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Add the file names to the menu
|
# Add the file names to the menu
|
||||||
if [ -d "$download_dir/$download_name" ]; then
|
if [[ "$download_name" = "skip" ]] || [[ "${download_versions[i]}" = "proton"* ]] ; then # filter out other file types or proton-downloads (needed for TKG)
|
||||||
|
continue
|
||||||
|
elif [ -d "$download_dir/$download_name" ]; then
|
||||||
menu_options+=("$download_name [installed]")
|
menu_options+=("$download_name [installed]")
|
||||||
else
|
else
|
||||||
menu_options+=("$download_name")
|
menu_options+=("$download_name")
|
||||||
fi
|
fi
|
||||||
menu_actions+=("download_install $i")
|
menu_actions+=("download_install $i")
|
||||||
done
|
done
|
||||||
|
|
||||||
# Complete the menu by adding the option to go back to the previous menu
|
# Complete the menu by adding the option to go back to the previous menu
|
||||||
menu_options+=("$goback")
|
menu_options+=("$goback")
|
||||||
menu_actions+=(":") # no-op
|
menu_actions+=(":") # no-op
|
||||||
|
Loading…
Reference in New Issue
Block a user