mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-16 05:00:38 +00:00
Compare commits
No commits in common. "d034b9bb155b4c3023672a587bd066b38a9f5950" and "2dd9b51ab15b5ba04de7a3c5007192aedbd39732" have entirely different histories.
d034b9bb15
...
2dd9b51ab1
@ -813,38 +813,33 @@ lutris_detect() {
|
|||||||
lutris_check() {
|
lutris_check() {
|
||||||
lutris_detect
|
lutris_detect
|
||||||
|
|
||||||
if [ "$lutris_installed" = "false" ]; then
|
if [ "$lutris_installed" = "true" ]; then
|
||||||
|
# Check the native lutris version number
|
||||||
|
if [ "$lutris_native" = "true" ]; then
|
||||||
|
lutris_current="$(lutris -v)"
|
||||||
|
if [ "$lutris_required" != "$lutris_current" ] &&
|
||||||
|
[ "$lutris_current" = "$(printf "$lutris_current\n$lutris_required" | sort -V | head -n1)" ]; then
|
||||||
|
preflight_fail+=("Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
||||||
|
else
|
||||||
|
preflight_pass+=("Lutris is installed and up to date.")
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check the flatpak lutris version number
|
||||||
|
if [ "$lutris_flatpak" = "true" ]; then
|
||||||
|
lutris_current="$(flatpak run net.lutris.Lutris -v)"
|
||||||
|
if [ "$lutris_required" != "$lutris_current" ] &&
|
||||||
|
[ "$lutris_current" = "$(printf "$lutris_current\n$lutris_required" | sort -V | head -n1)" ]; then
|
||||||
|
preflight_fail+=("Flatpak Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
||||||
|
else
|
||||||
|
preflight_pass+=("Flatpak Lutris is installed and up to date.")
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
preflight_fail+=("Lutris does not appear to be installed.\nFor manual installations, this may be ignored.")
|
preflight_fail+=("Lutris does not appear to be installed.\nFor manual installations, this may be ignored.")
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: This was reported and fixed. Verify and remove when v0.5.13 is released
|
|
||||||
if [ "$(pgrep -f lutris)" ]; then
|
|
||||||
preflight_fail+=("Unable to detect Lutris version info while it is running.\nVersion $lutris_required or newer is required.")
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check the native lutris version number
|
|
||||||
if [ "$lutris_native" = "true" ]; then
|
|
||||||
lutris_current="$(lutris -v)"
|
|
||||||
if [ "$lutris_required" != "$lutris_current" ] &&
|
|
||||||
[ "$lutris_current" = "$(printf "$lutris_current\n$lutris_required" | sort -V | head -n1)" ]; then
|
|
||||||
preflight_fail+=("Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
|
||||||
else
|
|
||||||
preflight_pass+=("Lutris is installed and up to date.")
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check the flatpak lutris version number
|
|
||||||
if [ "$lutris_flatpak" = "true" ]; then
|
|
||||||
lutris_current="$(flatpak run net.lutris.Lutris -v)"
|
|
||||||
if [ "$lutris_required" != "$lutris_current" ] &&
|
|
||||||
[ "$lutris_current" = "$(printf "$lutris_current\n$lutris_required" | sort -V | head -n1)" ]; then
|
|
||||||
preflight_fail+=("Flatpak Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
|
||||||
else
|
|
||||||
preflight_pass+=("Flatpak Lutris is installed and up to date.")
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check the installed winetricks version
|
# Check the installed winetricks version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user