#!/bin/sh
# The package manager installs updates, so the launcher's self-update is off.
export EGL_DISABLE_SELF_UPDATE="${EGL_DISABLE_SELF_UPDATE:-1}"
egl=/opt/epic-games-launcher/bin/EpicGamesLauncher
# On OpenRC, eac-run (sys-apps/eac-openrc-compat) provides what Easy Anti-Cheat needs while the launcher runs.
command -v eac-run >/dev/null 2>&1 && exec eac-run "$egl" "$@"
exec "$egl" "$@"
