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