python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / steam / steamcmd.sh
blob588badb41a1a0dda041a00049f99d898937d22f8
1 #!@bash@/bin/bash -e
3 # Always run steamcmd in the user's Steam root.
4 STEAMROOT=@steamRoot@
6 # Add coreutils to PATH for mkdir, ln and cp used below
7 PATH=$PATH${PATH:+:}@coreutils@/bin
9 # Create a facsimile Steam root if it doesn't exist.
10 if [ ! -e "$STEAMROOT" ]; then
11 mkdir -p "$STEAMROOT"/{appcache,config,logs,Steamapps/common}
12 mkdir -p ~/.steam
13 ln -sf "$STEAMROOT" ~/.steam/root
14 ln -sf "$STEAMROOT" ~/.steam/steam
17 # Copy the system steamcmd install to the Steam root. If we don't do
18 # this, steamcmd assumes the path to `steamcmd` is the Steam root.
19 # Note that symlinks don't work here.
20 if [ ! -e "$STEAMROOT/steamcmd.sh" ]; then
21 mkdir -p "$STEAMROOT/linux32"
22 # steamcmd.sh will replace these on first use
23 cp @out@/share/steamcmd/steamcmd.sh "$STEAMROOT/."
24 cp @out@/share/steamcmd/linux32/* "$STEAMROOT/linux32/."
27 @steamRun@/bin/steam-run "$STEAMROOT/steamcmd.sh" "$@"