Added umu download and repair for missing components on install, update and manual repair.

This commit is contained in:
2026-09-02 21:42:49 +02:00
parent 6f20b5e359
commit 7ce6ac3dd7
9 changed files with 660 additions and 40 deletions

View File

@@ -35,14 +35,17 @@ PYTHON_BIN="${PTLINUX_PYTHON:-python3}"
DRY_RUN=0
RUN_DOCTOR=1
INSTALL_DEPENDENCIES=1
RUN_RUNTIME_BOOTSTRAP=1
usage()
{
printf '%s\n' \
"Usage: ./install.sh [--install-dir PATH] [--dry-run] [--skip-deps] [--skip-doctor]" \
"Usage: ./install.sh [--install-dir PATH] [--dry-run] [--skip-deps] [--skip-doctor] [--skip-runtime-bootstrap]" \
"" \
" --install-dir PATH Store the app, managed game, and runtime data at PATH." \
" Default: ~/Games/PristontaleEU"
" Default: ~/Games/PristontaleEU" \
" --skip-runtime-bootstrap" \
" Do not prepare the verified UMU helper during install."
}
while (( $# > 0 ))
@@ -75,6 +78,10 @@ do
INSTALL_DEPENDENCIES=0
shift
;;
--skip-runtime-bootstrap)
RUN_RUNTIME_BOOTSTRAP=0
shift
;;
-h|--help)
usage
exit 0
@@ -325,6 +332,17 @@ then
fi
printf '%s\n' "Launcher files installed."
RUNTIME_BOOTSTRAP_READY=1
if (( RUN_RUNTIME_BOOTSTRAP == 1 ))
then
if ! "${BIN_HOME}/pristontale-eu" runtime-bootstrap
then
RUNTIME_BOOTSTRAP_READY=0
fi
else
printf '%s\n' "Steam Runtime helper preparation skipped."
fi
DOCTOR_READY=1
if (( RUN_DOCTOR == 1 ))
then
@@ -356,6 +374,14 @@ case ":${PATH:-}:" in
;;
esac
if (( RUNTIME_BOOTSTRAP_READY == 0 ))
then
printf '%s\n' \
"Launcher files were installed, but the Steam Runtime helper could not be prepared." \
"Retry with: ${BIN_HOME}/pristontale-eu runtime-bootstrap" >&2
exit 1
fi
if (( DOCTOR_READY == 0 ))
then
printf '%s\n' \