|
#!/bin/sh
|
|
scriptdir="$( dirname "$( readlink -f "${0}" )" )"
|
|
INFILE="${INFILE:-/mnt/public/Support/Games/aoe2de-on-linux/aoe2de-mods-subscribed.2026-06-26.tgz}"
|
|
steamid="$( "${scriptdir}/get-account-steamid.sh" | awk '{print $NF}' )"
|
|
WINEPREFIX="${WINEPREFIX:-${HOME}/.wine-aoe2de}"
|
|
destdir="${WINEPREFIX}/drive_c/users/steamuser/Games/Age of Empires 2 DE/${steamid}/mods"
|
|
if test -n "${VERBOSE}" ;
|
|
then
|
|
echo "tar -zx -C \"${destdir}\" -f \"${INFILE}\""
|
|
fi
|
|
if test -n "${APPLY}" ;
|
|
then
|
|
mkdir -p "${destdir}"
|
|
tar -zx -C "${destdir}" -f "${INFILE}"
|
|
else
|
|
echo "Dry run only! Please run with APPLY=1 to apply the initial mods."
|
|
fi
|