mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-16 17:10:37 +00:00
Compare commits
2 Commits
5e4cebb090
...
ae1630b7dd
Author | SHA1 | Date | |
---|---|---|---|
|
ae1630b7dd | ||
|
c9ae3427ae |
@ -220,7 +220,7 @@ lug_wiki="https://starcitizen-lug.github.io"
|
|||||||
# 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="v2.6.4"
|
current_version="v2.7"
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -1636,6 +1636,11 @@ download_select_install() {
|
|||||||
if [ "$download_url_type" = "github" ]; then
|
if [ "$download_url_type" = "github" ]; then
|
||||||
search_key="browser_download_url"
|
search_key="browser_download_url"
|
||||||
query_string="?per_page=$max_download_items"
|
query_string="?per_page=$max_download_items"
|
||||||
|
# For GE runners, add a few extra to max_download_items
|
||||||
|
# to provide extra room to filter out the game-specific builds below
|
||||||
|
if [ "$download_type" = "runner" ] && [ "$contributor_name" = "GloriousEggroll" ]; then
|
||||||
|
query_string="?per_page=$((max_download_items+5))"
|
||||||
|
fi
|
||||||
elif [ "$download_url_type" = "gitlab" ]; then
|
elif [ "$download_url_type" = "gitlab" ]; then
|
||||||
search_key="direct_asset_url"
|
search_key="direct_asset_url"
|
||||||
query_string="?per_page=$max_download_items"
|
query_string="?per_page=$max_download_items"
|
||||||
@ -1670,6 +1675,13 @@ download_select_install() {
|
|||||||
# To add new file extensions, handle them here and in
|
# To add new file extensions, handle them here and in
|
||||||
# the download_install function above
|
# the download_install function above
|
||||||
for (( i=0,num_download_items=0; i<"${#download_versions[@]}" && "$num_download_items"<"$max_download_items"; i++ )); do
|
for (( i=0,num_download_items=0; i<"${#download_versions[@]}" && "$num_download_items"<"$max_download_items"; i++ )); do
|
||||||
|
# For GE runners, we want to filter out game-specific builds
|
||||||
|
# This assumes that all standard GE builds contain the word proton in their name
|
||||||
|
if [ "$download_url_type" = "github" ] && [ "$download_type" = "runner" ] && [ "$contributor_name" = "GloriousEggroll" ] &&
|
||||||
|
printf '%s' "${download_versions[i]}" | grep -qive "proton"; then
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the file name minus the extension
|
# Get the file name minus the extension
|
||||||
case "${download_versions[i]}" in
|
case "${download_versions[i]}" in
|
||||||
*.sha*sum | *.ini | proton*)
|
*.sha*sum | *.ini | proton*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user