dragnpkgs/lib/fetchsteam/builder.sh

14 lines
381 B
Bash
Raw Normal View History

2024-04-15 19:57:00 +00:00
if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
source $stdenv/setup
echo "Downloading Steam depots for appId $appId into $out"
export HOME="$PWD"
mkdir -p "$out"
for args in "${depotArgs[@]}"; do
echo "Downloading component: $args"
DepotDownloader $args -dir "$out" -validate
done
rm -rf "$out/.DepotDownloader"