Update laucher to support 2.81.1 version

It now produces versions with architecture suffix appended. Pass suffix
as the first parameter to laucher. Shared one laucher for potentially
multiple architectures.
This commit is contained in:
Petr Menšík 2023-03-17 14:00:34 +01:00
parent 1a5b469791
commit 3af217eac3

View file

@ -28,8 +28,11 @@ show_instructions() {
exec xdg-open "$DATAPAGE"
}
# First option argument is variant. Others are passed to the executable
start_game() {
exec /usr/bin/etl
local VARIANT="${1:-}"
[ "$#" -gt 0 ] && shift
exec /usr/bin/etl${VARIANT} "$@"
}
start_installer() {
@ -68,11 +71,11 @@ done
if [ -z "$FOUNDPAK" ]; then
echo "pak[012].pk3 data not found!"
if [ -x "$INSTALLER"]; then
start_installer && start_game
start_installer && start_game "$@"
# Would terminate here on success
fi
if [ -f "$DATAPAGE" ]; then
show_instructions
fi
fi
start_game
start_game "$@"