mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-14 23:30:37 +00:00
Compare commits
No commits in common. "274c674681be4e5defe2627e1321a98dae54f315" and "199e5487678a52acdfa8ada99dd8dfd1d8f82528" have entirely different histories.
274c674681
...
199e548767
@ -124,7 +124,6 @@ dxvk_dir="$data_dir/lutris/runtime/dxvk"
|
||||
# ie. "Sporif Async" "https://api.github.com/repos/Sporif/dxvk-async/releases"
|
||||
dxvk_sources=(
|
||||
"Sporif Async" "https://api.github.com/repos/Sporif/dxvk-async/releases"
|
||||
"/dev/null" "https://api.github.com/repos/gort818/dxvk/releases"
|
||||
)
|
||||
# Set a maximum number of runner versions to display from each url
|
||||
max_dxvks=20
|
||||
@ -948,8 +947,7 @@ runner_install() {
|
||||
|
||||
# Extract the runner
|
||||
case "$first_filepath" in
|
||||
# If the files in the archive begin with ./ there is no subdirectory,
|
||||
# so we must create one
|
||||
# If the files in the archive begin with ./ there is no subdirectory
|
||||
./*)
|
||||
debug_print continue "Installing runner into $runners_dir/$runner_name..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
@ -961,10 +959,9 @@ runner_install() {
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
# If a subdirectory exists and has the same name as the archive,
|
||||
# extract it as is
|
||||
"$runner_name")
|
||||
debug_print continue "Installing runner into $runners_dir/$runner_name....."
|
||||
*)
|
||||
# Runners with a subdirectory in the archive
|
||||
debug_print continue "Installing runner into $runners_dir..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
# Use Zenity progress bar
|
||||
mkdir -p "$runners_dir" && tar -xf "$tmp_dir/$runner_file" -C "$runners_dir" | \
|
||||
@ -974,19 +971,6 @@ runner_install() {
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
# If a subdirectory exists and has any other name,
|
||||
# we must create the correct subdirectory
|
||||
*)
|
||||
debug_print continue "Installing runner into $runners_dir/$runner_name..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
# Use Zenity progress bar
|
||||
mkdir -p "$runners_dir/$runner_name" && tar -xf "$tmp_dir/$runner_file" -C "$runners_dir/$runner_name" | \
|
||||
zenity --progress --pulsate --no-cancel --auto-close --title="Star Citizen LUG Helper" --text="Installing runner...\n" 2>/dev/null
|
||||
else
|
||||
mkdir -p "$runners_dir/$runner_name" && tar -xf "$tmp_dir/$runner_file" -C "$runners_dir/$runner_name"
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Cleanup tmp download
|
||||
@ -1298,8 +1282,7 @@ dxvk_install() {
|
||||
|
||||
# Extract the dxvk
|
||||
case "$first_filepath" in
|
||||
# If the files in the archive begin with ./ there is no subdirectory,
|
||||
# so we must create one
|
||||
# If the files in the archive begin with ./ there is no subdirectory
|
||||
./*)
|
||||
debug_print continue "Installing DXVK into $dxvk_dir/$dxvk_name..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
@ -1311,10 +1294,9 @@ dxvk_install() {
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
# If a subdirectory exists and has the same name as the archive,
|
||||
# extract it as is
|
||||
"$dxvk_name")
|
||||
debug_print continue "Installing DXVK into $dxvk_dir/$dxvk_name..."
|
||||
*)
|
||||
# dxvks with a subdirectory in the archive
|
||||
debug_print continue "Installing DXVK into $dxvk_dir..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
# Use Zenity progress bar
|
||||
mkdir -p "$dxvk_dir" && tar -xf "$tmp_dir/$dxvk_file" -C "$dxvk_dir" | \
|
||||
@ -1324,19 +1306,6 @@ dxvk_install() {
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
# If a subdirectory exists and has any other name,
|
||||
# we must create the correct subdirectory
|
||||
*)
|
||||
debug_print continue "Installing DXVK into $dxvk_dir/$dxvk_name..."
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
# Use Zenity progress bar
|
||||
mkdir -p "$dxvk_dir/$dxvk_name" && tar -xf "$tmp_dir/$dxvk_file" -C "$dxvk_dir/$dxvk_name" | \
|
||||
zenity --progress --pulsate --no-cancel --auto-close --title="Star Citizen LUG Helper" --text="Installing DXVK...\n" 2>/dev/null
|
||||
else
|
||||
mkdir -p "$dxvk_dir/$dxvk_name" && tar -xf "$tmp_dir/$dxvk_file" -C "$dxvk_dir/$dxvk_name"
|
||||
fi
|
||||
lutris_needs_restart="true"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Cleanup tmp download
|
||||
|
Loading…
x
Reference in New Issue
Block a user