Naposledy aktivní 1704404135 Unlisted

See https://lorendb.dev/posts/archiving-steam-games-for-fun-and-profit/

Revize 0aec171ad42a17d9086cff900072aae499e71892

download-steam-games-list.sh Raw
1#!/bin/bash
2
3STEAM_USER=LorenDB
4STEAM_ALSO_CACHE_WINDOWS=0
5DOWNLOAD_GAME_SCRIPT_PATH="/home/loren/.local/bin/download-steam-game.sh"
6
7if [[ "$#" -ne 1 ]]; then
8 echo "Requires a single argument"
9 exit 1
10fi
11
12GAMES_LIST=$(cat $1)
13for game_info in $GAMES_LIST; do
14 game_name=$(echo $game_info | cut -d ',' -f 1)
15 game_id=$(echo $game_info | cut -d ',' -f 2)
16 game_windows_only=$(echo $game_info | cut -d ',' -f 3)
17
18 if [[ "$game_windows_only" -eq 1 ]]; then
19 $DOWNLOAD_GAME_SCRIPT_PATH -u $STEAM_USER -n $game_name -i $game_id -w
20 else
21 $DOWNLOAD_GAME_SCRIPT_PATH -u $STEAM_USER -n $game_name -i $game_id
22 fi
23done